Solr
  1. Solr
  2. SOLR-3670

CountFieldValuesUpdateProcessorFactory

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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
      

        Activity

        Hide
        Robert Muir added a comment -

        rmuir20120906-bulk-40-change

        Show
        Robert Muir added a comment - rmuir20120906-bulk-40-change
        Hide
        Hoss Man added a comment -

        patch with docs and tests

        Show
        Hoss Man added a comment - patch with docs and tests
        Hide
        Hoss Man added a comment -

        Committed revision 1372687. trunk
        Committed revision 1372689. 4x

        Show
        Hoss Man added a comment - Committed revision 1372687. trunk Committed revision 1372689. 4x
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development