Hi,

I think the "how can I perform both exact and non-exact (no stemming involved) 
searches?" is a pretty FAQ, but it looks like we don't have an answer for it on 
the Wiki.  The advice is typically to copy a field and apply different analysis 
to it (one stemmed, the other not stemmed), and then search on the appropriate 
field.

Is there a better way of doing this?

* CASE 1: index time stemming
input word: house ==> indexed as token: hous

exact-match desired (non-stemmed query):
  house ==> house ==> no match           --- so if you want exact matches, you 
can't stem at index-time

stemmed query:
  house ==> hous ==> match

* CASE 2: no index-time stemming
input word: house ==> indexed as token: house

exact-match desired (non-stemmed query):
  house ==> house ==> match

stemmed query:
  house ==> hous ==> no match           --- so if you don't stem at index-time, 
non-exact matching stops working

Thanks,
Otis
--
Sematext -- http://sematext.com/ -- Solr - Lucene - Nutch

Reply via email to