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

InsertPrefixTokenFilterFactory and InsertSuffixTokenFilterFactory

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.3
    • None
    • Schema and Analysis
    • None

    Description

      /**
       * Inserts a single token as prefix to the stream.
       * Useful to increase precision/recall of shingles located in the very begining of a stream.
       *
       * Accept the following arguments:
       *
       *   type: token type value of the prefix token
       * 
       *   text: text value of the prefix token
       *
       *   positionIncrement: positionIncrement of the prefix token.
       *
       *   trailingPositionIncrement: position increment of the first token in the input stream,
       *                              given the position increment of that token is set to 0.
       *
       * @see InsertSuffixTokenFilterFactory
       */
      public class InsertPrefixTokenFilterFactory extends BaseTokenFilterFactory {
      
      /**
       * Inserts a single token as a suffix in the stream.
       * Useful to increase precision/recall of shingles located in the very end of a stream.
       *
       * Accept the following arguments:
       *
       *   type: token type value of the suffix token
       *
       *   text: text value of the suffix token
       *
       *   positionIncrement: position increment of the suffix token.
       *
       *
       * @see InsertPrefixTokenFilterFactory
       */
      public class InsertSuffixTokenFilterFactory extends BaseTokenFilterFactory {
      

      Attachments

        1. SOLR-1118.txt
          11 kB
          Karl Wettin

        Activity

          People

            Unassigned Unassigned
            karl.wettin Karl Wettin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: