newExactQuery

fun newExactQuery(field: String, value: ByteArray): Query

Create a query for matching an exact binary value.

This is for simple one-dimension points, for multidimensional points use .newRangeQuery instead.

Return

a query matching documents with this exact value

Parameters

field

field name. must not be null.

value

binary value

Throws

if field is null or value is null