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

CountFieldValuesUpdateProcessorFactory

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Common usecase is to want to search on the number of values in a multivalued field.

      we should add a FieldMutationUpdateProcessorFactory that makes this easy...

      <processor class="solr.CloneFieldUpdateProcessorFactory">
       <str name="source">category</str>
       <str name="dest">number_of_categories_i</str>
      </processor>
      <processor class="solr.CountFieldValuesUpdateProcessorFactory">
       <str name="fieldName">number_of_categories_i</str>
      </processor
      

        Attachments

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              hossman Hoss Man
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: