public class MatchQuery extends SearchServerQuery
For this query, the query string itself and a single field to search in is to be provided. The query string will be analyzed for each field separately before matching. The resulting tokens will result in a boolean query, connected by the operator given by the operator field which defaults to or. The query string is not parsed in any way for boolean operators, field names, boosts etc.
This query type is closely related to MultiMatchQuery but can only use a single field for search.
| Modifier and Type | Field and Description |
|---|---|
String |
analyzer |
String |
field
The field to search in.
|
String |
operator
The boolean operator to connect the tokens of the analyzed query with.
|
String |
query
The query.
|
boost| Constructor and Description |
|---|
MatchQuery() |
public String query
field;public String field
public String operator
public String analyzer
Copyright © 2017 JULIE Lab, Germany. All rights reserved.