Book Image

Apache Solr Search Patterns

By : Jayant Kumar
Book Image

Apache Solr Search Patterns

By: Jayant Kumar

Overview of this book

Table of Contents (17 chapters)
Apache Solr Search Patterns
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 3. Solr Internals and Custom Queries

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 and AND clauses work

  • How 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