开发者

Can Solr return the actual final query that was used when synonyms and stemming are used?

I would like to be able to show in my UI what the query terms were that solr used to run the final query. For example, I might type the query "run" but behind the scenes solr will use stemming to also query "ran" and "running", I may also have a synonym defined which has "run = sprint".

I would like to show the user that although they typed in "run" the actual query was "run ran running sprint"

Any easy way开发者_StackOverflow中文版 to do this?

Thanks!


Try setting debugQuery=on. See this and this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜