equals

open operator override fun equals(o: Any?): Boolean

Compares the specified object with this boolean query for equality. Returns true if and only if the provided object

  • is also a BooleanQuery,

  • has the same value of .getMinimumNumberShouldMatch

  • has the same Occur.SHOULD clauses, regardless of the order

  • has the same Occur.MUST clauses, regardless of the order

  • has the same set of Occur.FILTER clauses, regardless of the order and regardless of duplicates

  • has the same set of Occur.MUST_NOT clauses, regardless of the order and regardless of duplicates