In this chapter, we will see how the relevance scorer works on the inverted index. We will understand how AND
and OR
clauses work in a query and look at how query filters and the minimum match parameter work internally. We will understand how the eDisMax query parser works. We will implement our own query language as a Solr plugin using which we will perform a proximity search. This chapter will give us an insight into the customization of the query logic and creation of custom query parsers as plugins in Solr. This chapter will cover the following topics:
How a scorer works on an inverted index
How
OR
andAND
clauses workHow the eDisMax query parser works
The minimum should match parameter
How filters work
Using Bibliographic Retrieval Services (BRS) queries instead of DisMax
Proximity search using SWAN (Same, With, Adj, Near) queries
Creating a parboiled parser
Building a Solr plugin for SWAN queries
Integrating the SWAN plugin in Solr