newExactQuery

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

Create a query for matching an exact BytesRef value.

Return

a query matching documents with this exact value

Parameters

field

field name. must not be null.

value

exact value

Throws

if field is null.


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

Create a query for matching an exact String value.

Return

a query matching documents with this exact value

Parameters

field

field name. must not be null.

value

exact value

Throws

if field is null.