solr icon indicating copy to clipboard operation
solr copied to clipboard

warn about unused UnifiedSolrHighlighter configuration

Open cpoerschke opened this issue 3 years ago • 3 comments
trafficstars

No JIRA issue as yet but would create one if this seem useful.

The default config has a comment

<!-- note: the hl.method=unified highlighter is not configured here; it's completely configured
    via parameters.  The below configuration supports hl.method=original and fastVector. -->

i.e. https://github.com/apache/solr/blob/branch_9_0/solr/server/solr/configsets/_default/conf/solrconfig.xml#L849-L850 but it still could be useful to flag unused configuration in the logs?

cpoerschke avatar Apr 22 '22 15:04 cpoerschke

Instead of adding more complexity, could we just configure the unified highlighter here and get rid of the others?

I like the ida of identifying unused configurations, but maybe that is something that needs to be done globablly (and I don't have any idea how you would do that!). I see a LOT of solrconfigs.xml that all need to go on a diet and have tons of unused stuff ;-).

I wish we shipped a nice stripped down solrconfig/schema that would encourage people to add to it, versus the filled with assumptions that is _default or the kitchen sink that is techproducts.

epugh avatar May 16 '22 12:05 epugh

Unless I'm missing something (maybe I looked too quickly at this PR), the change seems invalid to me. If someone registers highlighters, they can be chosen at runtime via hl.method.

BTW total +1 to what Eric said. That's another issue though; and JIRA worthy.

dsmiley avatar May 16 '22 13:05 dsmiley

This PR had no visible activity in the past 60 days, labeling it as stale. Any new activity will remove the stale label. To attract more reviewers, please tag someone or notify the [email protected] mailing list. Thank you for your contribution!

github-actions[bot] avatar Feb 21 '24 00:02 github-actions[bot]