public class MultiMatchQuery extends SearchServerQuery
LuceneSyntaxQuery). 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.| Modifier and Type | Class and Description |
|---|---|
static class |
MultiMatchQuery.Type
Determines the scoring strategy for multi field searches.
|
| Modifier and Type | Field and Description |
|---|---|
List<String> |
fields |
List<Float> |
fieldWeights
Must be parallel to
fields or null, this means especially that
fieldWeights must be of the same length as searchFields, if not null. |
String |
operator |
String |
query |
MultiMatchQuery.Type |
type |
boost| Constructor and Description |
|---|
MultiMatchQuery() |
public String query
public List<Float> fieldWeights
fields or null, this means especially that
fieldWeights must be of the same length as searchFields, if not null. Delivers
field-based score boosting, a higher number means a higher boost.public String operator
public MultiMatchQuery.Type type
MultiMatchQuery.Typepublic void addField(String field)
Copyright © 2017 JULIE Lab, Germany. All rights reserved.