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

Store Analyzed token text from an incoming SolrInputDocument

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • update
    • None

    Description

      This is an UpdateRequestProcessor that runs incoming fields through a Field Analyzer and stores the output of each token as a field value.

      For Example. If you have a field type defined:

      <fieldType name="text_ws" class="solr.TextField" >
      <analyzer>
      <tokenizer class="solr.WhitespaceTokenizerFactory"/>
      </analyzer>
      </fieldType>

      And send a request:
      /update?store.analysis=true&f.feature.analysis=text_ws
      <add> <doc>
      <field name="feature">aaa bbb ccc</field>
      </doc></add>

      The returned document will look like:
      <doc>
      <arr name="feature">
      <str>aaa</str>
      <str>bbb</str>
      <str>ccc</str>
      </arr>
      </doc>

      Attachments

        1. SOLR-314-StoreAnalysis.patch
          10 kB
          Ryan McKinley

        Activity

          People

            Unassigned Unassigned
            ryantxu Ryan McKinley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: