Solr
  1. Solr
  2. SOLR-5219

Rewritten selection of the default search and document clustering algorithms

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5, 5.0
    • Component/s: None
    • Labels:
      None

      Description

      This is currently quite messy: the user needs to explicitly name one algorithm as the "default", the code of processing that is a bit hairy.

      The new logic is:

      1) if there is a clustering algorithm named 'default' it becomes the default one.
      2) if there's any algorithm defined at all, the first one in declaration order becomes the default one.

      There is no need to declare clustering.algorithm parameter for the clustering component, unless the default from the above procedure needs to be altered.

      This is a fully backwards compatible improvement that allows one to declare more than one algorithm and give them sensible names.

        Issue Links

          Activity

          Adrien Grand made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Dawid Weiss made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Dawid Weiss made changes -
          Description This is currently quite messy: the user needs to explicitly name the 'default' algorithm. The logic should be:

          1) if there's only one algorithm, it becomes the default,
          2) if there's more than one algorithm, the first one becomes the default one.
          3) for back-compat, if there is an algorithm called 'default', it does become the default one.

          The code will simplify a great deal too.
          This is currently quite messy: the user needs to explicitly name one algorithm as the "default", the code of processing that is a bit hairy.

          The new logic is:

          1) if there is a clustering algorithm named 'default' it becomes the default one.
          2) if there's any algorithm defined at all, the first one in declaration order becomes the default one.

          There is no need to declare clustering.algorithm parameter for the clustering component, unless the default from the above procedure needs to be altered.

          This is a fully backwards compatible improvement that allows one to declare more than one algorithm and give them sensible names.
          Dawid Weiss made changes -
          Summary Refactor selection of the default clustering algorithm Rewritten selection of the default search and document clustering algorithms
          Dawid Weiss made changes -
          Link This issue is related to SOLR-5229 [ SOLR-5229 ]
          Dawid Weiss made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Dawid Weiss made changes -
          Field Original Value New Value
          Link This issue relates to SOLR-5202 [ SOLR-5202 ]
          Dawid Weiss created issue -

            People

            • Assignee:
              Dawid Weiss
              Reporter:
              Dawid Weiss
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development