org.apache.lucene.index.FieldInfo.IndexOptions Java Examples
The following examples show how to use
org.apache.lucene.index.FieldInfo.IndexOptions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BlockTreeTermsReader.java From incubator-retired-blur with Apache License 2.0 | 5 votes |
@Override public DocsAndPositionsEnum docsAndPositions(Bits skipDocs, DocsAndPositionsEnum reuse, int flags) throws IOException { if (fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) < 0) { // Positions were not indexed: return null; } currentFrame.decodeMetaData(); return postingsReader.docsAndPositions(fieldInfo, currentFrame.termState, skipDocs, reuse, flags); }
Example #2
Source File: BlockTreeTermsReader.java From incubator-retired-blur with Apache License 2.0 | 4 votes |
@Override public boolean hasOffsets() { return fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0; }
Example #3
Source File: BlockTreeTermsReader.java From incubator-retired-blur with Apache License 2.0 | 4 votes |
@Override public boolean hasPositions() { return fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0; }