C# Class Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyWriter.SinglePositionTokenStream

Inheritance: TokenStream
ファイルを表示 Open project: paulirwin/lucene.net

Public Methods

Method Description
IncrementToken ( ) : bool
Set ( int val ) : void

Set the value we want to keep, as the position increment. Note that when TermPositions.nextPosition() is later used to retrieve this value, val-1 will be returned, not val.

IMPORTANT NOTE: Before Lucene 2.9, val>=0 were safe (for val==0, the retrieved position would be -1). But starting with Lucene 2.9, this unfortunately changed, and only val>0 are safe. val=0 can still be used, but don't count on the value you retrieve later (it could be 0 or -1, depending on circumstances or versions). This change is described in Lucene's JIRA: LUCENE-1542.

SinglePositionTokenStream ( string word ) : System

Method Details

IncrementToken() public method

public IncrementToken ( ) : bool
return bool

Set() public method

Set the value we want to keep, as the position increment. Note that when TermPositions.nextPosition() is later used to retrieve this value, val-1 will be returned, not val.

IMPORTANT NOTE: Before Lucene 2.9, val>=0 were safe (for val==0, the retrieved position would be -1). But starting with Lucene 2.9, this unfortunately changed, and only val>0 are safe. val=0 can still be used, but don't count on the value you retrieve later (it could be 0 or -1, depending on circumstances or versions). This change is described in Lucene's JIRA: LUCENE-1542.

public Set ( int val ) : void
val int
return void

SinglePositionTokenStream() public method

public SinglePositionTokenStream ( string word ) : System
word string
return System