开发者

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

开发者 https://www.devze.com 2023-01-12 12:12 出处:网络
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 al

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

精彩评论

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