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

Schema browser does not indicate presence of charFilter

    Details

      Description

      My schema has a field defined as:

              <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
                  <analyzer type="index">
                      <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
                      <tokenizer class="solr.WhitespaceTokenizerFactory" />
                      <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
                      <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1"
                          catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" />
                      <filter class="solr.LowerCaseFilterFactory" />
                      <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt" />
                      <filter class="solr.RemoveDuplicatesTokenFilterFactory" />            
                  </analyzer>
                  <analyzer type="query">
                      <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
                      <tokenizer class="solr.WhitespaceTokenizerFactory" />
                      <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
                              ignoreCase="true" expand="true"/>
                      <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />                       
                      <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1"
                          catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1" />
                      <filter class="solr.LowerCaseFilterFactory" />
                      <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt" />
                      <filter class="solr.RemoveDuplicatesTokenFilterFactory" />                
                  </analyzer>
              </fieldType>
      

      and when I view the field in the schema browser, I see:

      Tokenized:  true
      
      Class Name:  org.apache.solr.schema.TextField
      
      Index Analyzer: org.apache.solr.analysis.TokenizerChain 
      
      Tokenizer Class:  org.apache.solr.analysis.WhitespaceTokenizerFactory
      
      Filters:  
      
      org.apache.solr.analysis.StopFilterFactory args:{words: stopwords.txt ignoreCase: true enablePositionIncrements: true }
      org.apache.solr.analysis.WordDelimiterFilterFactory args:{splitOnCaseChange: 1 generateNumberParts: 1 catenateWords: 1 generateWordParts: 1 catenateAll: 0 catenateNumbers: 1 }
      org.apache.solr.analysis.LowerCaseFilterFactory args:{}
      org.apache.solr.analysis.EnglishPorterFilterFactory args:{protected: protwords.txt }
      org.apache.solr.analysis.RemoveDuplicatesTokenFilterFactory args:{}
      Query Analyzer: org.apache.solr.analysis.TokenizerChain 
      
      Tokenizer Class:  org.apache.solr.analysis.WhitespaceTokenizerFactory
      
      Filters:  
      
      org.apache.solr.analysis.SynonymFilterFactory args:{synonyms: synonyms.txt expand: true ignoreCase: true }
      org.apache.solr.analysis.StopFilterFactory args:{words: stopwords.txt ignoreCase: true enablePositionIncrements: true }
      org.apache.solr.analysis.WordDelimiterFilterFactory args:{splitOnCaseChange: 1 generateNumberParts: 1 catenateWords: 0 generateWordParts: 1 catenateAll: 0 catenateNumbers: 0 }
      org.apache.solr.analysis.LowerCaseFilterFactory args:{}
      org.apache.solr.analysis.EnglishPorterFilterFactory args:{protected: protwords.txt }
      org.apache.solr.analysis.RemoveDuplicatesTokenFilterFactory args:{}
      

      It's not a big deal, but I expected to see some indication of the charFilter that is in place.

        Attachments

        1. SOLR-1601.patch
          5 kB
          Koji Sekiguchi

          Activity

            People

            • Assignee:
              koji Koji Sekiguchi
              Reporter:
              jakeb Jake Brownell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: