Solr
  1. Solr
  2. SOLR-1118

InsertPrefixTokenFilterFactory and InsertSuffixTokenFilterFactory

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: Schema and Analysis
    • Labels:
      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 {
      
      1. SOLR-1118.txt
        11 kB
        Karl Wettin

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Karl Wettin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development