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.

      1. SOLR-1601.patch
        5 kB
        Koji Sekiguchi

        Activity

        Hide
        Koji Sekiguchi added a comment -

        Will commit shortly.

        Show
        Koji Sekiguchi added a comment - Will commit shortly.
        Hide
        Koji Sekiguchi added a comment -

        Committed revision 884180. Thanks, Jake.

        Show
        Koji Sekiguchi added a comment - Committed revision 884180. Thanks, Jake.
        Hide
        Hoss Man added a comment -

        Correcting Fix Version based on CHANGES.txt, see this thread for more details...

        http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E

        Show
        Hoss Man added a comment - Correcting Fix Version based on CHANGES.txt, see this thread for more details... http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1.0 release
        Hide
        Antony Stubbs added a comment -

        I'm running 4 and I don't see any char filters still.

        Show
        Antony Stubbs added a comment - I'm running 4 and I don't see any char filters still.
        Hide
        Hoss Man added a comment -

        FYI: on irc we verified that Antony Stubbs was seeing the effects of LUCENE-3721

        Show
        Hoss Man added a comment - FYI: on irc we verified that Antony Stubbs was seeing the effects of LUCENE-3721

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development