Solr
  1. Solr
  2. SOLR-2338

improved per-field similarity integration into schema.xml

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-ALPHA
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      Currently since LUCENE-2236, we can enable Similarity per-field, but in schema.xml there is only a 'global' factory
      for the SimilarityProvider.

      In my opinion this is too low-level because to customize Similarity on a per-field basis, you have to set your own
      CustomSimilarityProvider with <similarity class=.../> and manage the per-field mapping yourself in java code.

      Instead I think it would be better if you just specify the Similarity in the FieldType, like after <analyzer>.

      As far as the example, one idea from LUCENE-1360 was to make a "short_text" or "metadata_text" used by the
      various metadata fields in the example that has better norm quantization for its shortness...

      1. SOLR-2338.patch
        56 kB
        Robert Muir
      2. SOLR-2338.patch
        31 kB
        Robert Muir
      3. SOLR-2338.patch
        33 kB
        Robert Muir

        Issue Links

          Activity

          Robert Muir created issue -
          Robert Muir made changes -
          Field Original Value New Value
          Link This issue depends on LUCENE-2986 [ LUCENE-2986 ]
          Robert Muir made changes -
          Attachment SOLR-2338.patch [ 12474467 ]
          Robert Muir made changes -
          Attachment SOLR-2338.patch [ 12474617 ]
          Robert Muir made changes -
          Assignee Robert Muir [ rcmuir ]
          Robert Muir made changes -
          Attachment SOLR-2338.patch [ 12475027 ]
          Robert Muir made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 4.0 [ 12314992 ]
          Hoss Man made changes -
          Link This issue relates to SOLR-2600 [ SOLR-2600 ]
          Gavin made changes -
          Link This issue depends on LUCENE-2986 [ LUCENE-2986 ]
          Gavin made changes -
          Link This issue depends upon LUCENE-2986 [ LUCENE-2986 ]
          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Robert Muir
              Reporter:
              Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development