Imagine the following problem – we have an application that expects Solr to return the results sorted on the basis of some field. Those results will be than paged in the GUI. However, if the person using the GUI application immediately selects the tenth, twentieth, or fiftieth page of search results there is a problem – the wait time. Is there anything we can do about this? Yes, we can help Solr a bit.
“Car sale application”– Result Grouping, let’s group some search results (part 6)
In today’s post we will try to add to our car sale application the new functionality, which allows us to group some search results. Let’s imagine a user who would like to search for “audi a4” advertisements and as a result get the results grouped by car’s year of production, with 2-3 results in every group. And how about some range grouping, for example mileage ranges? Today we will accept the challenge.
Lucene and Solr 3.3
Only a few weeks passed since the release of 3.2 version Lucene and Solr (change list) and today we have another release numbered 3.3. In the newest version there are a few functionalities worth looking at, especially when we talk about Solr.
When to commit?
The question I asked myself recently what seems to be one of those for which the response should be quick and painless. So, when to send the commit command to Solr (or Lucene)? Despite the simplicity of the questions, the answer is not clear, at least in my opinion.
Solr 3.1: FastVectorHighlighting
One of the many new features that Lucene and Solr 3.1 brings is FastVectorHighlighting – as the change notes say nothing less than the improved functionality of highlighting. Currently the highlighting mechanism is not too fast, sometimes it could kill your Solr instance when dealing with a large amount of data, or very long text fields. I thought that it is worthwhile to test the performance of the new functionality.
Lucene and Solr 3.2
On 03 June 2011 Lucene and Solr commiters published a new, stable version of Lucene library and Solr search engine – both numbered 3.2. You should not expect revolution in terms of new functionalities, but there are few changes worth the look.
Quick look: frange
In Solr 1.4 there were a new type of queries presented the frange queries. This new type of queries let you search for a range of values. According to the Solr developers this queries should be much faster from normal range queries. I thought that I should make a simple test to see how much faster, the new range queries can be expected to be.
“Car sale application” – SpellCheckComponent – did you really mean that ? (part 5)
The time has come to add another important functionality to our car sale application. It will be the spell checking mechanism with the ability to construct a new query from the suggestions. It has become the main functionality of every search engine so we will also make use of it.
Solr filters: PatternReplaceCharFilter
Continuing the overview of the filters included in Solr today we look at the PatternReplaceCharFilter.
As you might guess the task of the filter is to change the matching input stream parts that match the given regular expression.
Solr filters: KeepWordFilter
This time I decided to look at one of the unusual filters available in the standard distribution of Solr. The first one in my hands is a filter called KeepWordFilter.