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

improved per-field similarity integration into schema.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA
    • Schema and Analysis
    • 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...

      Attachments

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

        Issue Links

          Activity

            People

              rcmuir Robert Muir
              rcmuir Robert Muir
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: