/** Returns {@link PostingsEnum} for the specified * field and term. This will return null if the field or * term does not exist or positions were not indexed. * @see #getTermPositionsEnum(IndexReader, String, BytesRef, int) */ public static PostingsEnum getTermPositionsEnum(IndexReader r, String field, BytesRef term) throws IOException { return getTermPositionsEnum(r, field, term, PostingsEnum.ALL); }
/** Returns {@link PostingsEnum} for the specified * field and term. This will return null if the field or * term does not exist or positions were not indexed. * @see #getTermPositionsEnum(IndexReader, String, BytesRef, int) */ public static PostingsEnum getTermPositionsEnum(IndexReader r, String field, BytesRef term) throws IOException { return getTermPositionsEnum(r, field, term, PostingsEnum.ALL); }
/** Returns {@link PostingsEnum} for the specified * field and term. This will return null if the field or * term does not exist or positions were not indexed. * @see #getTermPositionsEnum(IndexReader, String, BytesRef, int) */ public static PostingsEnum getTermPositionsEnum(IndexReader r, String field, BytesRef term) throws IOException { return getTermPositionsEnum(r, field, term, PostingsEnum.ALL); }
/** Returns {@link PostingsEnum} for the specified * field and term. This will return null if the field or * term does not exist or positions were not indexed. * @see #getTermPositionsEnum(IndexReader, String, BytesRef, int) */ public static PostingsEnum getTermPositionsEnum(IndexReader r, String field, BytesRef term) throws IOException { return getTermPositionsEnum(r, field, term, PostingsEnum.ALL); }
PostingsEnum positions = MultiFields.getTermPositionsEnum(reader, Consts.FIELD_PAYLOADS, Consts.PAYLOAD_PARENT_BYTES_REF, PostingsEnum.PAYLOADS);
PostingsEnum positions = MultiFields.getTermPositionsEnum(reader, Consts.FIELD_PAYLOADS, Consts.PAYLOAD_PARENT_BYTES_REF, PostingsEnum.PAYLOADS);