As indicated previously, yes, exact matching is possible in Solr. You, the developer, have full control over the exactness or inexactness of all queries. If any query is inexact in some way, it is solely due to decisions that you, the developer, have made.

Generally speaking, inexactness, fuzziness if you will, is the precise quality that most developers - and users - are looking for in search. I mean, generally, having to be precise and "exact" in search requests... is tedious and a real drag, and something to be avoided - in general.

But, that's what string fields, the white space tokenizer, the regular expression tokenizer, and full developer control of the token filter sequence are for - to let you, the developer, to have full control, including all aspects of "exactness" of search.

As to your specific question - there is nothing about the "AND", "OR", or "NOT" (or "+" or "-") operators that is in any way anything other than "exact", in terms of document matching. "OR" can be considered a form of "inexactness" in that presence of a term is optional, but "AND" means absolutely MUST, and "NOT" means absolutely MUST_NOT. About as exact as anything could get.

Scoring and relevancy are another story, but have nothing to do with matching or "exactness". Exactness and matching only affect whether a document is counted in "numFound" and included in results or not, not the ordering of results.

But why are you asking? Is there some problem you are trying to solve? Is there some query that is not giving you the results you expect? If this is simply a general information question, fine, answered. But if you are trying to solve some problem, you will need to clearly state your problem rather than asking some general, abstract question.

-- Jack Krupansky

-----Original Message----- From: vsl
Sent: Thursday, April 25, 2013 5:33 AM
To: solr-user@lucene.apache.org
Subject: Exact matching in Solr 3.6.1

Hi,
is it possible to get exact matched result if the search term is combined
e.g. "cats" AND London NOT Leeds


In the previus threads I have read that it is possible to create new field
of String type and perform phrase search on it but nowhere the above
mentioned combined search term had been taken into consideration.

BR
Pawel



--
View this message in context: http://lucene.472066.n3.nabble.com/Exact-matching-in-Solr-3-6-1-tp4058865.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to