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

add PatternReplaceCharFilter

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5, 3.1, 4.0-ALPHA
    • Schema and Analysis
    • None

    Description

      Add a new CharFilter that uses a regular expression for the target of replace string in char stream.

      Usage:

      schema.xml
      <fieldType name="textCharNorm" class="solr.TextField" positionIncrementGap="100" >
        <analyzer>
          <charFilter class="solr.PatternReplaceCharFilterFactory"
                      groupedPattern="([nN][oO]\.)\s*(\d+)"
                      replaceGroups="1,2" blockDelimiters=":;"/>
          <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
          <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        </analyzer>
      </fieldType>
      

      Attachments

        1. SOLR-1653.patch
          17 kB
          Koji Sekiguchi
        2. SOLR-1653.patch
          22 kB
          Koji Sekiguchi

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            koji Koji Sekiguchi
            koji Koji Sekiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment