org.apache.lucene.analysis.tokenattributes

Interface TermToBytesRefAttribute

    • Method Detail

      • getBytesRef

        BytesRef getBytesRef()
        Retrieve this attribute's BytesRef. The bytes are updated from the current term. The implementation may return a new instance or keep the previous one.
        Returns:
        a BytesRef to be indexed (only stays valid until token stream gets incremented)