(12/01/24 9:31), O. Klein wrote:
Let's say I search for "spellcheck solr" on a website that only contains
info about Solr, so "solr" was added to the stopwords.txt. The query that
will be parsed then (dismax) will not contain the term "solr".

So fragments won't contain highlights of the term "solr". So when a fragment
with the highlighted term "spellcheck" is generated, it would be less
confusing for people who don't know how search engines work to also
highlight the term "solr".

So my first test was to have a field with StopFilterFactory and search on
that field, while using another field without StopFilterFactory to highlight
on. This didn't do the trick.

Are you saying that using hl.q parameter on highlight field while using q on
the search field that has StopFilter and hl.q doesn't work for you?

koji
--
http://www.rondhuit.com/en/

Reply via email to