Override a stemmed word on the fly in a query with Spinx?

时间:2015-12-11 06:38:13

标签: sphinx stemming

If I turn on stemming/lemmatizer in sphinx can I push a term to it "as needed" that does not utilize stemming? I know I can use wordforms to always ignore that word from stemming e.g. Radiology > Radiology but that results in never stemming the word. I'm looking for a way to not add as a wordform exception but be able to in a query in essence say 'look exactly for "Radiology" and do not stem/lemmatize". I have tried "Radiology" instead of Radiology to no avail.

1 个答案:

答案 0 :(得分:0)

http://sphinxsearch.com/docs/current.html#conf-index-exact-words :)

然后就可以了

=Radiology

(在扩展匹配模式下)