Search code examples
sphinxstemming

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


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.


Solution

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

    Then can do

    =Radiology
    

    (in extended match mode)