public class ContentPropertySearchQueryFactory extends Object
Constructor and Description |
---|
ContentPropertySearchQueryFactory() |
Modifier and Type | Method and Description |
---|---|
SearchSort |
buildContentPropertySearchSort(ContentPropertySchemaField schemaField,
SearchSort.Order order,
org.apache.lucene.search.SortField.Type type) |
SearchQuery |
buildNumberRangeQuery(ContentPropertySchemaField schemaField,
com.atlassian.querylang.antlrgen.AqlParser.EqOpContext opCtx,
Double value) |
SearchQuery |
buildNumberRangeQuery(ContentPropertySchemaField schemaField,
com.atlassian.querylang.antlrgen.AqlParser.RangeOpContext opCtx,
Double value) |
<N extends Number> |
buildNumberRangeQuery(ContentPropertySchemaField schemaField,
N from,
N to,
boolean includesFrom,
boolean includesTo)
Build a generic range query for any number type between 'from' and 'to'.
|
SearchQuery |
buildStringEqualityQuery(ContentPropertySchemaField schemaField,
String... value)
Build a generic string equality query.
|
SearchQuery |
buildTextSearchQuery(ContentPropertySchemaField schemaField,
String value)
Build a generic text comparison query.
|
com.atlassian.confluence.plugins.cql.spi.v2searchhelpers.V2SearchQueryWrapper |
create(ContentPropertySchemaField schemaField,
Object value,
com.atlassian.querylang.antlrgen.AqlParser.MapExprValueContext valueContext) |
public com.atlassian.confluence.plugins.cql.spi.v2searchhelpers.V2SearchQueryWrapper create(ContentPropertySchemaField schemaField, Object value, com.atlassian.querylang.antlrgen.AqlParser.MapExprValueContext valueContext)
public SearchQuery buildNumberRangeQuery(ContentPropertySchemaField schemaField, com.atlassian.querylang.antlrgen.AqlParser.RangeOpContext opCtx, Double value)
public SearchQuery buildNumberRangeQuery(ContentPropertySchemaField schemaField, com.atlassian.querylang.antlrgen.AqlParser.EqOpContext opCtx, Double value)
public SearchSort buildContentPropertySearchSort(ContentPropertySchemaField schemaField, SearchSort.Order order, org.apache.lucene.search.SortField.Type type)
public <N extends Number> SearchQuery buildNumberRangeQuery(ContentPropertySchemaField schemaField, N from, N to, boolean includesFrom, boolean includesTo)
N
- extends NumberschemaField
- the field to create the query onfrom
- the initial value of the rangeto
- the final value of the rangeincludesFrom
- if true, include the initial value in the rangeincludesTo
- if true, include the final value the rangepublic SearchQuery buildStringEqualityQuery(ContentPropertySchemaField schemaField, String... value)
schemaField
- the field to create the query onvalue
- the value to check forpublic SearchQuery buildTextSearchQuery(ContentPropertySchemaField schemaField, String value)
schemaField
- the field to create the query onvalue
- the value to check forCopyright © 2003–2018 Atlassian. All rights reserved.