You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Robert Brown <ro...@intelcompute.com> on 2011/12/08 10:31:53 UTC

Highlighting to include stop words

I have a text field, using stopwords...

Index and query analysers setup as follows:

SynonymFilterFactory
StopFilterFactory
WordDelimiterFilterFactory
LowerCaseFilterFactory
SnowballPorterFilterFactory


Searching for "front of house" brings back perfect matches, but 
doesn't highlight the "of".

I took "of" out of the stops words for the query analyser and it now 
matches "front-of-house" but I know there's better matches stored as 
"front of house" (without the hyphens) that are ranked much lower.

Is there any quick way to have the highlighting applied to the entire 
phrase that was searched?




--

IntelCompute
Web Design & Local Online Marketing

http://www.intelcompute.com