You can do phrase search explicitly with quotes. Or you could look at
something like Term query parser:
https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-TermQueryParser

You can also enable autoGeneratePhraseQueries on the field type to try
the phrase queries, but that's in addition to trying individual terms:
https://cwiki.apache.org/confluence/display/solr/Field+Type+Definitions+and+Properties

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Tue, May 6, 2014 at 5:35 AM, Jack Krupansky <j...@basetechnology.com> wrote:
> The term "strict search" is not in the Lucene/Solr nomenclature - it could
> mean any number of things.
>
> It sounds as if maybe you want to do a phrase search, looking for an exact
> phrase - yes, you can do that by enclosing the phrase in quotes.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Reyes, Mark
> Sent: Monday, May 5, 2014 5:23 PM
> To: solr-user@lucene.apache.org
> Subject: Strict Search in Apache Solr
>
>
> How could Solr accomplish an end-user behavior like a strict search?
>
> Let’s say an end-user decides to use quotation marks in their keywords to
> provide specificity in their search results.
>
> Current:
> If you were to query: your future, then 10 results would return and print to
> the page.
>
> Expected:
> I’d like to query: “your future”, then less than 10 results would return and
> print to the page.
>
> Regards,
> Mark
>
> IMPORTANT NOTICE: This e-mail message is intended to be received only by
> persons entitled to receive the confidential information it may contain.
> E-mail messages sent from Bridgepoint Education may contain information that
> is confidential and may be legally privileged. Please do not read, copy,
> forward or store this message unless you are an intended recipient of it. If
> you received this transmission in error, please notify the sender by reply
> e-mail and delete the message and any attachments.

Reply via email to