com.senseidb.search.client.json.req.query
Class Queries
java.lang.Object
com.senseidb.search.client.json.req.query.Queries
public class Queries
- extends Object
|
Method Summary |
static BoolQuery |
bool(List<Query> must,
List<Query> must_not,
List<Query> should,
double boost)
|
static BoolQuery |
bool(List<Query> must,
List<Query> must_not,
List<Query> should,
int minimumNumberShouldMatch,
double boost,
boolean disableCoord)
|
static CustomQuery |
customQuery(String cls,
Map<String,String> params,
double boost)
|
static DisMax |
disMax(double tieBraker,
double boost,
Term... queries)
|
static FilteredQuery |
filteredQuery(Query query,
Filter filter,
double boost)
|
static Ids |
ids(List<String> values,
List<String> excludes,
double boost)
|
static MatchAllQuery |
matchAllQuery(double boost)
|
static PathQuery |
path(String field,
String name,
double boost)
|
static QueryPrefix |
prefix(String field,
String value,
double boost)
|
static Selection.Range |
range(String field,
String from,
String to,
boolean includeLower,
boolean includeUpper,
double boost,
boolean noOptimize)
|
static Selection.Range |
range(String field,
String from,
String to,
boolean includeLower,
boolean includeUpper,
double boost,
boolean noOptimize,
String type)
|
static SpanFirst |
spanFirst(SpanTerm match,
int end,
double boost)
|
static SpanNear |
spanNear(List<SpanTerm> clauses,
int slop,
boolean inOrder,
boolean collectPayloads,
double boost)
|
static SpanNot |
spanNot(SpanTerm include,
SpanTerm exclude,
double boost)
|
static SpanOr |
spanOr(Double boost,
SpanTerm... clauses)
|
static SpanTerm |
spanTerm(String field,
String value)
|
static SpanTerm |
spanTerm(String field,
String value,
Double boost)
|
static StringQuery |
stringQuery(String query)
|
static StringQuery.Builder |
stringQueryBuilder()
|
static Term |
term(String field,
String value,
double boost)
|
static Terms |
terms(String field,
List<String> values,
List<String> excludes,
Operator op,
int minimumMatch,
double boost)
|
static TextQuery |
textQuery(String field,
String text,
Operator operator,
double boost)
|
static TextQuery |
textQuery(String field,
String text,
Operator operator,
TextQuery.Type type,
double boost)
|
static QueryWildcard |
wildcard(String field,
String value,
double boost)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Queries
public Queries()
customQuery
public static CustomQuery customQuery(String cls,
Map<String,String> params,
double boost)
disMax
public static DisMax disMax(double tieBraker,
double boost,
Term... queries)
matchAllQuery
public static MatchAllQuery matchAllQuery(double boost)
prefix
public static QueryPrefix prefix(String field,
String value,
double boost)
wildcard
public static QueryWildcard wildcard(String field,
String value,
double boost)
bool
public static BoolQuery bool(List<Query> must,
List<Query> must_not,
List<Query> should,
int minimumNumberShouldMatch,
double boost,
boolean disableCoord)
bool
public static BoolQuery bool(List<Query> must,
List<Query> must_not,
List<Query> should,
double boost)
stringQueryBuilder
public static StringQuery.Builder stringQueryBuilder()
stringQuery
public static StringQuery stringQuery(String query)
spanFirst
public static SpanFirst spanFirst(SpanTerm match,
int end,
double boost)
spanNear
public static SpanNear spanNear(List<SpanTerm> clauses,
int slop,
boolean inOrder,
boolean collectPayloads,
double boost)
spanNot
public static SpanNot spanNot(SpanTerm include,
SpanTerm exclude,
double boost)
spanOr
public static SpanOr spanOr(Double boost,
SpanTerm... clauses)
spanTerm
public static SpanTerm spanTerm(String field,
String value)
spanTerm
public static SpanTerm spanTerm(String field,
String value,
Double boost)
textQuery
public static TextQuery textQuery(String field,
String text,
Operator operator,
TextQuery.Type type,
double boost)
textQuery
public static TextQuery textQuery(String field,
String text,
Operator operator,
double boost)
filteredQuery
public static FilteredQuery filteredQuery(Query query,
Filter filter,
double boost)
path
public static PathQuery path(String field,
String name,
double boost)
term
public static Term term(String field,
String value,
double boost)
terms
public static Terms terms(String field,
List<String> values,
List<String> excludes,
Operator op,
int minimumMatch,
double boost)
ids
public static Ids ids(List<String> values,
List<String> excludes,
double boost)
range
public static Selection.Range range(String field,
String from,
String to,
boolean includeLower,
boolean includeUpper,
double boost,
boolean noOptimize)
range
public static Selection.Range range(String field,
String from,
String to,
boolean includeLower,
boolean includeUpper,
double boost,
boolean noOptimize,
String type)
Copyright © 2010-2012. All Rights Reserved.