org.apache.lucene.analysis.ja.tokenAttributes
Interface SentenceStartAttribute

All Superinterfaces:
org.apache.lucene.util.Attribute
All Known Implementing Classes:
SentenceStartAttributeImpl

public interface SentenceStartAttribute
extends org.apache.lucene.util.Attribute

Specifies if this token starts a new sentence: this can be useful if you want to adjust position increment to prevent phrase queries from matching across sentence boundaries without slop.


Method Summary
 boolean getSentenceStart()
           
 void setSentenceStart(boolean sentenceStart)
           
 

Method Detail

getSentenceStart

boolean getSentenceStart()

setSentenceStart

void setSentenceStart(boolean sentenceStart)


Copyright © 2012. All Rights Reserved.