Interface FulltextQueryTermsProvider

  • @Deprecated
    public interface FulltextQueryTermsProvider
    This interface exposes Lucene API directly - it will be removed as soon as an alternative is available. See also IndexFieldProvider.
    Implementations of this interface would get callbacks while forming lucene full text queries.
    • Field Detail

      • DEFAULT

        static final FulltextQueryTermsProvider DEFAULT
        Implementation which doesn't do anything useful... yet, abides with the contract.
    • Method Detail

      • getQueryTerm

        @Nullable Query getQueryTerm​(String text,
                                     Analyzer analyzer,
                                     NodeState indexDefinition)
        This method would get called while forming full text clause for full text clause not constrained on a particular field.
        text - full text term
        analyzer - Analyzer being used while forming the query. Can be used to analyze text consistently.
        indexDefinition - NodeState of index definition
        Query object to be OR'ed with query being prepared. null, if nothing is to be added.