public abstract class SearchServerQuery extends Object
An abstract super class for query objects. For each SearchServerCommand, one such object is given to form the
central element of the request, the query itself. This does not include the number of documents to return, faceting
and such.
The classes extending this class will be inspired by the ElasticSearch query DSL (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl.html) since, at the time of writing, ElasticSearch is the employed search server. Also, the ElasticSearch query DSL is well structured following an object property approach, which is easily represented as Java objects, where the corresponding Solr queries consist of different, not always easy to understand, elements as the query itself and local parameters (https://wiki.apache.org/solr/LocalParams). Thus, when using another search server, e.g. Solr, those queries must be translated in the Solr search component.
SearchServerCommand.query| Modifier and Type | Field and Description |
|---|---|
float |
boost
A boost to make this query more (> 1) or less (<1) important than other query clauses, if used in a compound query, e.g.
|
| Constructor and Description |
|---|
SearchServerQuery() |
public float boost
BoolQuery.Copyright © 2017 JULIE Lab, Germany. All rights reserved.