11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

perfect recall is trivial: simply return every document in the collection for every query.<br />

Returning to the examples above, it's important for an e-discovery search application to have 100% recall<br />

returning all the documents that are relevant to a subpoena. It's far less important that a recipe application offer<br />

this degree of precision, however. In some cases, returning too many results in casual contexts could overwhelm<br />

users. In some contexts, returning fewer results that have a higher likelihood of relevance may be the best<br />

approach.<br />

Using the concepts of precision and recall, it's possible to quantify relevance across users and queries for a<br />

collection of documents. A perfect system would have 100% precision and 100% recall for every user and every<br />

query. In other words, it would retrieve all the relevant documents and nothing else. In practical terms, when<br />

talking about precision and recall in real systems, it is common to focus on precision and recall at a certain<br />

number of results, the most common (and useful) being ten results.<br />

Through faceting, query filters, and other search components, a <strong>Solr</strong> application can be configured with the<br />

flexibility to help users fine-tune their searches in order to return the most relevant results for users. That is, <strong>Solr</strong><br />

can be configured to balance precision and recall to meet the needs of a particular user community.<br />

The configuration of a <strong>Solr</strong> application should take into account:<br />

the needs of the application's various users (which can include ease of use and speed of response, in<br />

addition to strictly informational needs)<br />

the categories that are meaningful to these users in their various contexts (e.g., dates, product categories,<br />

or regions)<br />

any inherent relevance of documents (e.g., it might make sense to ensure that an official product<br />

description or FAQ is always returned near the top of the search results)<br />

whether or not the age of documents matters significantly (in some contexts, the most recent documents<br />

might always be the most important)<br />

Keeping all these factors in mind, it's often helpful in the planning stages of a <strong>Solr</strong> deployment to sketch out the<br />

types of responses you think the search application should return for sample queries. Once the application is up<br />

and running, you can employ a series of testing methodologies, such as focus groups, in-house testing, TREC te<br />

sts and A/B testing to fine tune the configuration of the application to best meet the needs of its users.<br />

For more information about relevance, see Grant Ingersoll's tech article Debugging Search Application<br />

Relevance Issues which is available on SearchHub.org.<br />

Query Syntax and Parsing<br />

<strong>Solr</strong> supports several query parsers, offering search application designers great flexibility in controlling how<br />

queries are parsed.<br />

This section explains how to specify the query parser to be used. It also describes the syntax and features<br />

supported by the main query parsers included with <strong>Solr</strong> and describes some other parsers that may be useful for<br />

particular situations. There are some query parameters common to all <strong>Solr</strong> parsers; these are discussed in the<br />

section Common Query Parameters.<br />

The parsers discussed in this <strong>Guide</strong> are:<br />

The Standard Query Parser<br />

The DisMax Query Parser<br />

The Extended DisMax Query Parser<br />

Other Parsers<br />

The query parser plugins are all subclasses of QParserPlugin. If you have custom parsing needs, you may want<br />

to extend that class to create your own query parser.<br />

For more detailed information about the many query parsers available in <strong>Solr</strong>, see https://wiki.apache.org/solr/So<br />

lrQuerySyntax.<br />

Common Query Parameters<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

244

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!