C# Класс Lucene.Net.Analysis.Compound.CompoundWordTokenFilterBase

Base class for decomposition token filters.

You must specify the required LuceneVersion compatibility when creating CompoundWordTokenFilterBase:

  • As of 3.1, CompoundWordTokenFilterBase correctly handles Unicode 4.0 supplementary characters in strings and char arrays provided as compound word dictionaries.
  • As of 4.4, CompoundWordTokenFilterBase doesn't update offsets.

Наследование: TokenFilter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
dictionary CharArraySet
matchVersion LuceneVersion
maxSubwordSize int
minSubwordSize int
minWordSize int
offsetAtt IOffsetAttribute
onlyLongestMatch bool
termAtt ICharTermAttribute
tokens LinkedList

Открытые методы

Метод Описание
IncrementToken ( ) : bool
Reset ( ) : void

Защищенные методы

Метод Описание
CompoundWordTokenFilterBase ( LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary ) : Lucene.Net.Analysis.Tokenattributes
CompoundWordTokenFilterBase ( LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary, bool onlyLongestMatch ) : Lucene.Net.Analysis.Tokenattributes
CompoundWordTokenFilterBase ( LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary, int minWordSize, int minSubwordSize, int maxSubwordSize, bool onlyLongestMatch ) : Lucene.Net.Analysis.Tokenattributes
Decompose ( ) : void

Decomposes the current #termAtt and places CompoundToken instances in the #tokens list. The original token may not be placed in the list, as it is automatically passed through this filter.

Описание методов

CompoundWordTokenFilterBase() защищенный метод

protected CompoundWordTokenFilterBase ( LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary ) : Lucene.Net.Analysis.Tokenattributes
matchVersion LuceneVersion
input TokenStream
dictionary CharArraySet
Результат Lucene.Net.Analysis.Tokenattributes

CompoundWordTokenFilterBase() защищенный метод

protected CompoundWordTokenFilterBase ( LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary, bool onlyLongestMatch ) : Lucene.Net.Analysis.Tokenattributes
matchVersion LuceneVersion
input TokenStream
dictionary CharArraySet
onlyLongestMatch bool
Результат Lucene.Net.Analysis.Tokenattributes

CompoundWordTokenFilterBase() защищенный метод

protected CompoundWordTokenFilterBase ( LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary, int minWordSize, int minSubwordSize, int maxSubwordSize, bool onlyLongestMatch ) : Lucene.Net.Analysis.Tokenattributes
matchVersion LuceneVersion
input TokenStream
dictionary CharArraySet
minWordSize int
minSubwordSize int
maxSubwordSize int
onlyLongestMatch bool
Результат Lucene.Net.Analysis.Tokenattributes

Decompose() защищенный абстрактный метод

Decomposes the current #termAtt and places CompoundToken instances in the #tokens list. The original token may not be placed in the list, as it is automatically passed through this filter.
protected abstract Decompose ( ) : void
Результат void

IncrementToken() публичный закрытый метод

public final IncrementToken ( ) : bool
Результат bool

Reset() публичный метод

public Reset ( ) : void
Результат void

Описание свойств

dictionary защищенное свойство

protected CharArraySet dictionary
Результат CharArraySet

matchVersion защищенное свойство

protected LuceneVersion matchVersion
Результат LuceneVersion

maxSubwordSize защищенное свойство

protected int maxSubwordSize
Результат int

minSubwordSize защищенное свойство

protected int minSubwordSize
Результат int

minWordSize защищенное свойство

protected int minWordSize
Результат int

offsetAtt защищенное свойство

protected IOffsetAttribute offsetAtt
Результат IOffsetAttribute

onlyLongestMatch защищенное свойство

protected bool onlyLongestMatch
Результат bool

termAtt защищенное свойство

protected ICharTermAttribute termAtt
Результат ICharTermAttribute

tokens защищенное свойство

protected LinkedList tokens
Результат LinkedList