Skip to content

warn about unused UnifiedSolrHighlighter configuration#816

Closed
cpoerschke wants to merge 1 commit into
apache:mainfrom
cpoerschke:UnifiedSolrHighlighter-init
Closed

warn about unused UnifiedSolrHighlighter configuration#816
cpoerschke wants to merge 1 commit into
apache:mainfrom
cpoerschke:UnifiedSolrHighlighter-init

Conversation

@cpoerschke
Copy link
Copy Markdown
Contributor

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?

@epugh
Copy link
Copy Markdown
Contributor

epugh commented May 16, 2022

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.

@dsmiley
Copy link
Copy Markdown
Contributor

dsmiley commented May 16, 2022

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.

@github-actions
Copy link
Copy Markdown

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 dev@solr.apache.org mailing list. Thank you for your contribution!

@github-actions github-actions Bot added the stale PR not updated in 60 days label Feb 21, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 5, 2024

This PR is now closed due to 60 days of inactivity after being marked as stale. Re-opening this PR is still possible, in which case it will be marked as active again.

@github-actions github-actions Bot added the closed-stale Closed after being stale for 60 days label Oct 5, 2024
@github-actions github-actions Bot closed this Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

closed-stale Closed after being stale for 60 days stale PR not updated in 60 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants