com.senseidb.search.client.json.req.query
Class MatchAllQuery
java.lang.Object
com.senseidb.search.client.json.req.query.MatchAllQuery
- All Implemented Interfaces:
- Filter, Query
public class MatchAllQuery
- extends Object
- implements Query
A query that matches all documents. Maps to Sensei MatchAllDocsQuery.
{
"match_all" : { }
}
Which can also have boost associated with it:
{
"match_all" : { "boost" : 1.2 }
}
Index Time Boost
When indexing, a boost value can either be associated on the document level, or per field. The match all query does not take boosting into account by default. In order to take boosting into account, the norms_field needs to be provided in order to explicitly specify which field the boosting will be done on (Note, this will result in slower execution time). For example:
{
"match_all" : { "norms_field" : "my_field" }
}
| Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter |
Filter.AndOr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchAllQuery
public MatchAllQuery(double boost)
Copyright © 2010-2012. All Rights Reserved.