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.
精彩评论