We have already seen how Apache Solr effectively uses different request handlers to provide consumers with extensive ways of getting search results. Each Request Handler uses its own query parser, which extracts the parameters and their values from the query string and forms Lucene Query Objects. The standard query parser allows greater precision over search data; DisMaxQueryParser and Extended DisMaxQueryParser provide a Google-like searching syntax while searching. Depending upon which request handler called, the query syntax is changed. Let's look at some of the important terms:
Term |
Meaning |
---|---|
|
The query string |
|
The field list that a search response will return |
|
Results/facets to be sorted by authors in an ascending order |
|
Looks for price between 0 and 100; limits the result to 10 rows at a time, starting at the 5th matched result |
|
Enable highlighting by field list name and features |
|
Enables faceted search by the field "year" |
|
Published date between last year (same day) and today |
|
This is called proximity search. Searches for the descriptions containing Java and SQL in a single document with a proximity of 10 words maximum |
|
Will search for an Open JDK term in the document |
|
Searches for a specific ID and similar results |
3.145.7.116