org.elasticsearch.index.query.WildcardQueryBuilder Java Examples
The following examples show how to use
org.elasticsearch.index.query.WildcardQueryBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EsQueryVistor.java From usergrid with Apache License 2.0 | 6 votes |
@Override public void visit( ContainsOperand op ) throws NoFullTextIndexException { final String name = op.getProperty().getValue().toLowerCase(); final String value = op.getLiteral().getValue().toString().toLowerCase(); // or field is just a string that does need a prefix if ( value.indexOf( "*" ) != -1 ) { final WildcardQueryBuilder wildcardQuery = QueryBuilders.wildcardQuery( IndexingUtils.FIELD_STRING_NESTED, value ); queryBuilders.push( fieldNameTerm( name, wildcardQuery ) ); } else { final MatchQueryBuilder termQuery = QueryBuilders.matchQuery( IndexingUtils.FIELD_STRING_NESTED, value ); queryBuilders.push( fieldNameTerm( name, termQuery ) ); } //no op for filters, push an empty operation //TODO, validate this works filterBuilders.push( NoOpFilterBuilder.INSTANCE ); }
Example #2
Source File: BsDuplicateHostCQ.java From fess with Apache License 2.0 | 4 votes |
public void setRegularName_Wildcard(String regularName, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("regularName", regularName); if (opLambda != null) { opLambda.callback(builder); } }
Example #3
Source File: BsBadWordCQ.java From fess with Apache License 2.0 | 4 votes |
public void setTargetRole_Wildcard(String targetRole, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("targetRole", targetRole); if (opLambda != null) { opLambda.callback(builder); } }
Example #4
Source File: BsRelatedQueryCQ.java From fess with Apache License 2.0 | 4 votes |
public void setQueries_Wildcard(String queries, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("queries", queries); if (opLambda != null) { opLambda.callback(builder); } }
Example #5
Source File: BsThumbnailQueueCQ.java From fess with Apache License 2.0 | 4 votes |
public void setGenerator_Wildcard(String generator, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("generator", generator); if (opLambda != null) { opLambda.callback(builder); } }
Example #6
Source File: BsDataConfigCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #7
Source File: BsDataConfigCQ.java From fess with Apache License 2.0 | 4 votes |
public void setHandlerScript_Wildcard(String handlerScript, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("handlerScript", handlerScript); if (opLambda != null) { opLambda.callback(builder); } }
Example #8
Source File: BsPathMappingCQ.java From fess with Apache License 2.0 | 4 votes |
public void setCreatedBy_Wildcard(String createdBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("createdBy", createdBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #9
Source File: BsDataConfigCQ.java From fess with Apache License 2.0 | 4 votes |
public void setHandlerName_Wildcard(String handlerName, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("handlerName", handlerName); if (opLambda != null) { opLambda.callback(builder); } }
Example #10
Source File: BsCrawlingInfoParamCQ.java From fess with Apache License 2.0 | 4 votes |
public void setValue_Wildcard(String value, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("value", value); if (opLambda != null) { opLambda.callback(builder); } }
Example #11
Source File: BsDataConfigCQ.java From fess with Apache License 2.0 | 4 votes |
public void setName_Wildcard(String name, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("name", name); if (opLambda != null) { opLambda.callback(builder); } }
Example #12
Source File: BsBadWordCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #13
Source File: BsKeyMatchCQ.java From fess with Apache License 2.0 | 4 votes |
public void setQuery_Wildcard(String query, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("query", query); if (opLambda != null) { opLambda.callback(builder); } }
Example #14
Source File: BsWebConfigCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUserAgent_Wildcard(String userAgent, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("userAgent", userAgent); if (opLambda != null) { opLambda.callback(builder); } }
Example #15
Source File: BsDuplicateHostCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #16
Source File: BsKeyMatchCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #17
Source File: BsDuplicateHostCQ.java From fess with Apache License 2.0 | 4 votes |
public void setDuplicateHostName_Wildcard(String duplicateHostName, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("duplicateHostName", duplicateHostName); if (opLambda != null) { opLambda.callback(builder); } }
Example #18
Source File: BsRequestHeaderCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #19
Source File: BsElevateWordCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #20
Source File: BsFileAuthenticationCQ.java From fess with Apache License 2.0 | 4 votes |
public void setFileConfigId_Wildcard(String fileConfigId, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("fileConfigId", fileConfigId); if (opLambda != null) { opLambda.callback(builder); } }
Example #21
Source File: BsElevateWordCQ.java From fess with Apache License 2.0 | 4 votes |
public void setReading_Wildcard(String reading, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("reading", reading); if (opLambda != null) { opLambda.callback(builder); } }
Example #22
Source File: BsWebConfigCQ.java From fess with Apache License 2.0 | 4 votes |
public void setExcludedUrls_Wildcard(String excludedUrls, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("excludedUrls", excludedUrls); if (opLambda != null) { opLambda.callback(builder); } }
Example #23
Source File: BsElevateWordCQ.java From fess with Apache License 2.0 | 4 votes |
public void setCreatedBy_Wildcard(String createdBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("createdBy", createdBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #24
Source File: BsCrawlingInfoCQ.java From fess with Apache License 2.0 | 4 votes |
public void setSessionId_Wildcard(String sessionId, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("sessionId", sessionId); if (opLambda != null) { opLambda.callback(builder); } }
Example #25
Source File: BsWebAuthenticationCQ.java From fess with Apache License 2.0 | 4 votes |
public void setAuthRealm_Wildcard(String authRealm, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("authRealm", authRealm); if (opLambda != null) { opLambda.callback(builder); } }
Example #26
Source File: BsBoostDocumentRuleCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUrlExpr_Wildcard(String urlExpr, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("urlExpr", urlExpr); if (opLambda != null) { opLambda.callback(builder); } }
Example #27
Source File: BsWebAuthenticationCQ.java From fess with Apache License 2.0 | 4 votes |
public void setHostname_Wildcard(String hostname, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("hostname", hostname); if (opLambda != null) { opLambda.callback(builder); } }
Example #28
Source File: BsBoostDocumentRuleCQ.java From fess with Apache License 2.0 | 4 votes |
public void setCreatedBy_Wildcard(String createdBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("createdBy", createdBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #29
Source File: BsWebAuthenticationCQ.java From fess with Apache License 2.0 | 4 votes |
public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy); if (opLambda != null) { opLambda.callback(builder); } }
Example #30
Source File: BsFileConfigCQ.java From fess with Apache License 2.0 | 4 votes |
public void setVirtualHosts_Wildcard(String virtualHosts, ConditionOptionCall<WildcardQueryBuilder> opLambda) { WildcardQueryBuilder builder = regWildcardQ("virtualHosts", virtualHosts); if (opLambda != null) { opLambda.callback(builder); } }