Typeahead and autosuggest with pure Solr and Nginx

A long time ago I was writing about a very simple technic which can be used to quickly provide auto-suggest for websites with the support of Solr: Incredibly fast Solr autosuggest . This was using the terms function of Solr which enables us to search for terms, surprisingly.

This solution … Continue reading

Postgresql full text search vs Solr

Postgresql has really come a long way from being the standard but relatively slow database to the feature rich and extremely fast database what it is today. Supporting unstructured data (HSTORE, JSON[B]), geo function (PostGIS), full text search  (TSVECTOR) it is representing a true competition to the search engines.

Looking … Continue reading

Solr Stats component is available in sunburnt

Stats

StatsComponent is now available with stats function in the suburnt Solr python client library.

More info: http://wiki.apache.org/solr/StatsComponent

Example:

For the source code go to my github repo: https://github.com/charlesnagy/sunburnt

Solr dynamic field with data importer

solr

I’m managing a Solr installation which holds products for an e-commerce site. Lately a new feature was introduced. Namely, every product type can have specific dynamic attributes which is configurable on the Type level. For example monitor types have resolution, size, etc. while processor types have clock frequency, socket, L2 … Continue reading

Dataimport handler for Sunburnt Solr python library

Dataimport handler

I had to trigger the dataimporter delta-import command from the code so I added support for this function.

Example:

Following properties are available in the SolrImportStatus (_response.import_status) object:

Source code can be found on my github page:  Continue reading

Sunburnt Solr spatial filter support

I’ve added spatial filtering to the sunburnt library. The feature is now available with filter_spatial function.

Example usage

Currently this will use bbox by default. I’m planning to add more features to it in the future but so far it fits my needs. Let me know if you … Continue reading

Solr python interface – Sunburnt fork

sunburnt

I forked tow (Toby White, gratitude for his great work) sunburnt repository from github because I needed range facet funcionality and the workaround (with the filter queries) wasn’t quite what I wanted.

You can checkout here: https://github.com/charlesnagy/sunburnt

Docs about it:

Range facets

More about range facets see: http://wiki.apache.org/solr/SimpleFacetParameters#Facet_by_Range

Now sunburnt support range … Continue reading

Solr benchmark – first blood

solr

This is a quick impression about the freshly installed Solr 3.5 server.

Enviroment

The base system is a Amazon Microinstance equivalent virtual machine running on a HP Microserver. The VM has 600MB ram and 8GB HDD.

System info & benchmarks

Solr performance

Full index

The data backend … Continue reading