Class IndexedField<I,​T>

  • Type Parameters:
    I - input type from which documents are created and search results are returned.
    T - type that should be extracted from the input object when converting to an index document.

    public abstract class IndexedField<I,​T>
    extends Object
    Definition of a field stored in the secondary index.

    Each IndexedField, stored in index, may have multiple IndexedField.SearchSpec which defines how it can be searched and how the index tokens are generated.

    Index implementations may choose to store IndexedField and IndexedField.SearchSpec (search tokens) separately, however IndexedQuery always issues the queries to IndexedField.SearchSpec.

    This allows index implementations to store IndexedField once, while enabling multiple tokenization strategies on the same IndexedField with IndexedField.SearchSpec