Class PayloadNearQuery

    • Constructor Detail

      • PayloadNearQuery

        public PayloadNearQuery​(SpanQuery[] clauses,
                                int slop,
                                boolean inOrder)
      • PayloadNearQuery

        public PayloadNearQuery​(SpanQuery[] clauses,
                                int slop,
                                boolean inOrder,
                                PayloadFunction function)
    • Method Detail

      • createWeight

        public Weight createWeight​(IndexSearcher searcher)
                            throws java.io.IOException
        Description copied from class: Query
        Expert: Constructs an appropriate Weight implementation for this query.

        Only implemented by primitive queries, which re-write to themselves.

        Overrides:
        createWeight in class SpanQuery
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString​(java.lang.String field)
        Description copied from class: Query
        Prints a query to a string, with field assumed to be the default field and omitted.
        Overrides:
        toString in class SpanNearQuery
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: SpanNearQuery
        Returns true iff o is equal to this.
        Overrides:
        equals in class SpanNearQuery