Searching for exact phrase

扶醉桌前 提交于 2020-01-15 12:07:24

问题


How do i achieve "Exact Phrase" functionality on this field using BooleanQuery/any other class? For example if a user types in "top selling book" then it should return books which has this phrase in its description.

Thanks again!


回答1:


Having the query within double quotes should work.



来源:https://stackoverflow.com/questions/431556/searching-for-exact-phrase

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