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

term based ValueSourceParsers should support an option to run an analyzer for hte specified field on the input

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The following functions all take exactly 2 arguments: a field name, and a term value...

      • idf
      • termfreq
      • tf
      • totaltermfreq

      ...we should consider adding an optional third argument to indicate if an analyzer for the specified field should be used on the input to find the real "Term" to consider.

      For example, the following might all result in equivilent numeric values for all docs assuming simple plural stemming and lowercasing...

      termfreq(foo_t,'Bicycles',query) // use the query analyzer for field foo_t on input Bicycles
      termfreq(foo_t,'Bicycles',index) // use the index analyzer for field foo_t on input Bicycles
      termfreq(foo_t,'bicycle',none) // no analyzer used to construct Term
      termfreq(foo_t,'bicycle') // legacy 2 arg syntax, same as 'none'
      

      (Special error checking needed if analyzer creates more then one term for the given input string)

        Attachments

        1. SOLR-7981.patch
          1 kB
          Jason Gerlowski

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hossman Chris M. Hostetter
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: