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.
getSentenceStart
boolean getSentenceStart()
setSentenceStart
void setSentenceStart(boolean sentenceStart)
Copyright © 2012. All Rights Reserved.