org.elasticsearch.index.query.PrefixQueryBuilder Java Examples

The following examples show how to use org.elasticsearch.index.query.PrefixQueryBuilder. 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: BoundedFilterFactoryTest.java    From elasticsearch-reindex-tool with Apache License 2.0 5 votes vote down vote up
@Test
public void shouldCreatePrefixFilter() throws Exception {
  //given
  BoundedFilterFactory factory = new BoundedFilterFactory();
  PrefixSegment anyPrefixSegment = new PrefixSegment("prefix");
  //when
  QueryBuilder filter = factory.createBoundedFilter("fieldName", anyPrefixSegment);
  //then
  assertThat(filter).isInstanceOf(PrefixQueryBuilder.class);
}
 
Example #2
Source File: BsRoleTypeCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setValue_Prefix(String value, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("value", value);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #3
Source File: BsDataConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setCreatedBy_Prefix(String createdBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("createdBy", createdBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #4
Source File: BsDataConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setVirtualHosts_Prefix(String virtualHosts, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("virtualHosts", virtualHosts);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #5
Source File: BsRelatedContentCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setVirtualHost_Prefix(String virtualHost, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("virtualHost", virtualHost);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #6
Source File: BsDataConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setUpdatedBy_Prefix(String updatedBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("updatedBy", updatedBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #7
Source File: BsDataConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setHandlerScript_Prefix(String handlerScript, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("handlerScript", handlerScript);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #8
Source File: BsWebConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setDescription_Prefix(String description, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("description", description);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #9
Source File: BsDataConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setHandlerName_Prefix(String handlerName, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("handlerName", handlerName);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #10
Source File: BsAccessTokenCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setCreatedBy_Prefix(String createdBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("createdBy", createdBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #11
Source File: BsDataConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setName_Prefix(String name, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("name", name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #12
Source File: BsLabelTypeCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setName_Prefix(String name, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("name", name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #13
Source File: BsKeyMatchCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setQuery_Prefix(String query, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("query", query);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #14
Source File: BsKeyMatchCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setCreatedBy_Prefix(String createdBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("createdBy", createdBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #15
Source File: BsDuplicateHostCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setUpdatedBy_Prefix(String updatedBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("updatedBy", updatedBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #16
Source File: BsDuplicateHostCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setRegularName_Prefix(String regularName, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("regularName", regularName);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #17
Source File: BsRelatedQueryCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setVirtualHost_Prefix(String virtualHost, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("virtualHost", virtualHost);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #18
Source File: BsLabelTypeCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setUpdatedBy_Prefix(String updatedBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("updatedBy", updatedBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #19
Source File: BsElevateWordCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setUpdatedBy_Prefix(String updatedBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("updatedBy", updatedBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #20
Source File: BsElevateWordCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setSuggestWord_Prefix(String suggestWord, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("suggestWord", suggestWord);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #21
Source File: BsThumbnailQueueCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setGenerator_Prefix(String generator, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("generator", generator);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #22
Source File: BsBadWordCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setTargetLabel_Prefix(String targetLabel, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("targetLabel", targetLabel);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #23
Source File: BsWebAuthenticationCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setWebConfigId_Prefix(String webConfigId, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("webConfigId", webConfigId);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #24
Source File: BsCrawlingInfoCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setSessionId_Prefix(String sessionId, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("sessionId", sessionId);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #25
Source File: BsCrawlingInfoCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setName_Prefix(String name, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("name", name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #26
Source File: BsWebAuthenticationCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setPassword_Prefix(String password, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("password", password);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #27
Source File: BsWebConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setExcludedDocUrls_Prefix(String excludedDocUrls, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("excludedDocUrls", excludedDocUrls);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #28
Source File: BsRelatedQueryCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setUpdatedBy_Prefix(String updatedBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("updatedBy", updatedBy);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #29
Source File: BsBoostDocumentRuleCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setBoostExpr_Prefix(String boostExpr, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("boostExpr", boostExpr);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}
 
Example #30
Source File: BsFileConfigCQ.java    From fess with Apache License 2.0 4 votes vote down vote up
public void setVirtualHosts_Prefix(String virtualHosts, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
    PrefixQueryBuilder builder = regPrefixQ("virtualHosts", virtualHosts);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
}