Class PrefixTermOp

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    FuzzyTermOp

    public class PrefixTermOp
    extends SynonymOp
    A synonym class that matches terms with a common prefix in the lexicon.
    Since:
    5.0
    Author:
    Craig Macdonald
    See Also:
    Serialized Form
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
    • Constructor Detail

      • PrefixTermOp

        public PrefixTermOp​(java.lang.String searchString)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class SynonymOp
      • getStartString

        protected java.lang.String getStartString​(java.lang.String search)
      • getEndString

        protected java.lang.String getEndString​(java.lang.String termLo)
      • getPostingIterator

        public org.apache.commons.lang3.tuple.Pair<EntryStatistics,​IterablePosting> getPostingIterator​(Index index)
                                                                                                      throws java.io.IOException
        Description copied from class: Operator
        get posting iterator for this query op.
        Overrides:
        getPostingIterator in class MultiTermOp
        Returns:
        Pair, but Pair.of(null,null) if term not found
        Throws:
        java.io.IOException