Enabling stemming from sphinx.yml in Thinking Sphinx

谁都会走 提交于 2019-12-24 01:03:33

问题


I created a config/sphinx.yml file with the line: morphology: stem_en

After running rake ts:config, it doesn't seem to have changed development.sphinx.conf, and following a rebuild, searching for "dawg" doesn't match "dawgs".

How can I get this to work?


回答1:


If I recall correctly the morphology line should fall under a "development" header like so:

development:
  morphology: stem_en

Not sure if you've done so already, but if not give it a try.



来源:https://stackoverflow.com/questions/1173777/enabling-stemming-from-sphinx-yml-in-thinking-sphinx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!