I am trying to see if there is a way to get back the resulting search'd query to solr excluding the stopwords. Right now when I search for: "the year in review" i can see in the debug that the parsed query contains: text:"? year ? review" but that information is mixed in with all the parsed boosting queries and isn't easily accessible via that XML (and would require me to always pass debugQuery=true to my production queries.
I am trying to only get back the natural searched terms so I can highlight them in the returned search results. I know that solr has built in highlighting capability, but I can't use it because some of the fields contain HTML themselves and I need to strip it all out when I display the search results. right now, if I pass the full searched phrase to the highlighter it looks a little strange having every occurrence of "the" or "and" highlighted, so I'd like to only highlight the non-stopwords if I could. any thoughts or ideas would be appreciated