Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11977

QEC editorialMarkerFieldName & excludeMarkerFieldName are confusing and silly

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      QueryElevationComponent suppports 2 initParams that are weird and very inconsistent with how similar features in solr work...

      • editorialMarkerFieldName
      • excludeMarkerFieldName

      These init params simply provide an "override" to the names "elevated" and "excluded" that are used in QueryElevationComponent.inform(SolrCore) to change the names used when registering instances of EditorialMarkerFactory and ExcludedMarkerFactory as DocTransformers.

      This makes no sense – we already have a standard mechanism for people to override the default names used by doc transformers.

      We should:

      1. deprecated & remove & undocument these options and remove the relvant code from QEC
      2. add these transformers to TransformerFactory.defaultFactories using their default names

      ... users that have a strong desire to override these names should do so by explicitly registering them as <transformer name="..." just like an other DocTransformer.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            hossman Chris M. Hostetter

            Dates

              Created:
              Updated:

              Slack

                Issue deployment