16 lines
297 B
Plaintext
16 lines
297 B
Plaintext
[[java-query-dsl-term-query]]
|
|
==== Term Query
|
|
|
|
See {ref}/query-dsl-term-query.html[Term Query]
|
|
|
|
[source,java]
|
|
--------------------------------------------------
|
|
QueryBuilder qb = term(
|
|
"name", <1>
|
|
"kimchy" <2>
|
|
);
|
|
--------------------------------------------------
|
|
<1> field
|
|
<2> text
|
|
|