Q
- the query type used by the query engine implementationS
- the sort type used by the query engine implementationE
- the exception it throwspublic interface LuceneQueryParserAdaptor<Q,S,E extends Throwable>
Modifier and Type | Method and Description |
---|---|
S |
buildSort(List<Ordering> list,
FunctionEvaluationContext functionContext) |
String |
getDatetimeSortField(String field,
PropertyDefinition propertyDef) |
LuceneQueryParserExpressionAdaptor<Q,E> |
getExpressionAdaptor()
Utility to build conjunctions, disjunctions and negation
|
String |
getField()
Get the default field
|
Q |
getFieldQuery(String field,
String value) |
Q |
getFieldQuery(String luceneFieldName,
String term,
AnalysisMode analysisMode,
Integer slop,
LuceneFunction luceneFunction) |
Q |
getFieldQuery(String field,
String queryText,
AnalysisMode analysisMode,
LuceneFunction luceneFunction) |
Q |
getFuzzyQuery(String luceneFieldName,
String term,
Float minSimilarity) |
Q |
getIdentifieLikeQuery(String field,
String stringValue,
AnalysisMode analysisMode)
Wrap generating a potentially complex id + version query
|
Q |
getIdentifierQuery(String field,
String stringValue,
AnalysisMode analysisMode,
LuceneFunction luceneFunction)
Wrap generating a potentially complex id + version query
|
Q |
getLikeQuery(String field,
String sqlLikeClause,
AnalysisMode analysisMode) |
Q |
getMatchAllNodesQuery()
A query that matches all alfresco nodes (not extra stuff that may be in the underlying index)
|
Q |
getMatchAllQuery()
A query that matches all docs
|
Q |
getMatchNoneQuery()
A query that matches no docs.
|
Q |
getNegatedQuery(Q query)
Invert a query - add a mandatory must not match anything query alnogside
|
int |
getPhraseSlop()
Get the default phrase slop
|
Q |
getPrefixQuery(String luceneFieldName,
String term,
AnalysisMode analysisMode) |
Q |
getRangeQuery(String field,
String lower,
String upper,
boolean includeLower,
boolean includeUpper,
AnalysisMode analysisMode,
LuceneFunction luceneFunction) |
SearchParameters |
getSearchParameters() |
String |
getSortField(String field) |
Q |
getSpanQuery(String luceneFieldName,
String first,
String last,
int slop,
boolean inOrder) |
Q |
getWildcardQuery(String luceneFieldName,
String term,
AnalysisMode mode) |
boolean |
sortFieldExists(String noLocalField) |
Q getFieldQuery(String field, String queryText, AnalysisMode analysisMode, LuceneFunction luceneFunction) throws E extends Throwable
Q getRangeQuery(String field, String lower, String upper, boolean includeLower, boolean includeUpper, AnalysisMode analysisMode, LuceneFunction luceneFunction) throws E extends Throwable
Q getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode) throws E extends Throwable
SearchParameters getSearchParameters()
Q getIdentifierQuery(String field, String stringValue, AnalysisMode analysisMode, LuceneFunction luceneFunction) throws E extends Throwable
Q getIdentifieLikeQuery(String field, String stringValue, AnalysisMode analysisMode) throws E extends Throwable
boolean sortFieldExists(String noLocalField)
noLocalField
- StringS buildSort(List<Ordering> list, FunctionEvaluationContext functionContext) throws E extends Throwable
Q getFuzzyQuery(String luceneFieldName, String term, Float minSimilarity) throws E extends Throwable
String getField()
int getPhraseSlop()
Q getFieldQuery(String luceneFieldName, String term, AnalysisMode analysisMode, Integer slop, LuceneFunction luceneFunction) throws E extends Throwable
Q getPrefixQuery(String luceneFieldName, String term, AnalysisMode analysisMode) throws E extends Throwable
Q getSpanQuery(String luceneFieldName, String first, String last, int slop, boolean inOrder) throws E extends Throwable
Q getWildcardQuery(String luceneFieldName, String term, AnalysisMode mode) throws E extends Throwable
Q getNegatedQuery(Q query) throws E extends Throwable
LuceneQueryParserExpressionAdaptor<Q,E> getExpressionAdaptor()
Q getMatchAllNodesQuery()
String getDatetimeSortField(String field, PropertyDefinition propertyDef)
field
- StringpropertyDef
- PropertyDefinitionCopyright © 2005–2017 Alfresco Software. All rights reserved.