*Erick*, thank you for help!
For exact match I still want:
to use stemming (e.g. for "sleep" I want the word forms "slept", "sleeping",
"sleeps" also to be used in searching)
to disregard case sensitivity
to disregard prepositions, conjunctions and other function words
to match only docs having all of the query words and in the given order
(except function words)
to match only docs if there are no other words in the doc field besides the
words in the query
to use synonyms (e.g. "GB" == "gigabyte", "Television" == "TV")

Erick Erickson wrote
> The easiest way to make your examples work wouldbe to use a copyField to
> an "exact match" field thatuses the KeywordTokenizer

The KeywordTokenizer treats the entire field as a single token, regardless
of its content. So this does not fit to my requirements.

Erick Erickson wrote
> You'll have to be a little careful to escape spaces for muti-term bits,
> like exact_field:pussy\ cat. 

Hmm... I don't care about quoting right now at all. But should I?
Erick Erickson wrote
> As far as your question about "if" and "in", what you're probably getting
> here is stopword removal, but that's a guess.

I have the following document:After I disabled solr.StopFilterFactory for
analyzer type="query" Solr stopped returning this document for the query:
http://localhost:8983/solr/lexikos/select?q=phraseExact%3A%22on+a+case-by-case%22.Can
I somehow implement the desired "exact match" behavior?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Tricky-exact-match-unwanted-search-results-tp4158652p4158745.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to