Understanding and Configuring Solr's PingRequestHandler

Understanding and Configuring Solr's PingRequestHandler

In this blog, we'll talk about simple yet very useful Solr handler which is PingRequestHandler. We can use Ping Request Handler…

Read More

Solr LocalParams and Security

Solr LocalParams and Security

Local Parameters are often called as LocalParams. Using this we can “localize” information about an argument that is being sent to Solr through Solr query. its another way of adding…

Read More

Using Solr and TikaOCR to search text inside an image

Using Solr and TikaOCR to search text inside an image

Tesseract is probably the most accurate open source OCR engine available and with Apache Tika 1.7 you can now use the awesome Tesseract OCR parser within Tika!


Solr 5.x has support…

Read More

Using Solr's ComplexPhraseQueryParser

Using Solr's ComplexPhraseQueryParser

ComplexPhraseQuery allows complex phrase query syntax e.g “canc* treat* “. It Performs multiple passes over Query text to parse any nested logic in PhraseQueries.


The first pass takes any PhraseQuery content…

Read More

Measuring Search Relevance using NDCG

Measuring Search Relevance using NDCG

Normalized Discounted Cumulative Gain (NDCG) is popular method for measuring the quality of a set of search results. It asserts the following:


Very relevant results are more useful than somewhat relevant…

Read More

Query Rescoring in Solr

Query Rescoring in Solr

Sometimes relevance requirements are very complex and creates performance issues during execution. There is a very nice feature Introduced in Solr 4.9 called “Query Reranking/Rescoring” (SOLR-6088) which allows us to…

Read More

Test Driven Development by Example

Test-driven development (TDD) is a software development. First the developer writes an (initially failing) automated test case that defines a desired improvement or new function, then produces the minimum amount…

Read More

Understanding PhraseQuery and Slop in Solr

PhraseQuery in Lucene matches documents containing a particular sequence of terms. PhraseQuery uses positional information of the term that is stored in an index. 

The number of other words permitted between…

Read More

Exactish Phrase Matching in Solr

Phrase match: A simple way by which we can achieve exact matching in Solr is by using the default string type. It is exact phrase matching. the string is a useful…

Read More

Solr's mm parameter - Explanation of Min Number Should Match

This article explains the format used for specifying the “Min Number Should Match” criteria of the BooleanQuery objects built by the DisMaxRequestHandler.  Using this it is possible to specify a…

Read More