org.elasticsearch.index.query.RangeQueryBuilder Java Examples
The following examples show how to use
org.elasticsearch.index.query.RangeQueryBuilder.
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: EsSearchRequest.java From mall with Apache License 2.0 | 6 votes |
/** * 添加价格区间的搜索 * * @param boolQueryBuilder bool 查询 */ public void addPriceRange(BoolQueryBuilder boolQueryBuilder) { if (Objects.isNull(this.priceRange) || !this.priceRange.isValidate()) { return; } RangeQueryBuilder rangeQueryBuilder = QueryBuilders.rangeQuery("price"); if (!StringUtils.isEmpty(this.priceRange.getMin())) { rangeQueryBuilder.from(this.priceRange.getMin().doubleValue()); } if (!StringUtils.isEmpty(this.priceRange.getMax())) { rangeQueryBuilder.to(this.priceRange.getMax().doubleValue()); } boolQueryBuilder.must(rangeQueryBuilder); }
Example #2
Source File: BsSearchLogCQ.java From fess with Apache License 2.0 | 5 votes |
public void setQueryTime_GreaterEqual(Long queryTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = queryTime; RangeQueryBuilder builder = regRangeQ("queryTime", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #3
Source File: BsClickLogCQ.java From fess with Apache License 2.0 | 5 votes |
public void setRequestedAt_LessEqual(LocalDateTime requestedAt, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = toRangeLocalDateTimeString(requestedAt, "date_optional_time"); RangeQueryBuilder builder = regRangeQ("requestedAt", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #4
Source File: BsBadWordCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedTime_GreaterEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdTime; RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #5
Source File: BsScheduledJobCQ.java From fess with Apache License 2.0 | 5 votes |
public void setTarget_LessEqual(String target, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = target; RangeQueryBuilder builder = regRangeQ("target", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #6
Source File: BsSearchLogCQ.java From fess with Apache License 2.0 | 5 votes |
public void setUserSessionId_GreaterThan(String userSessionId, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = userSessionId; RangeQueryBuilder builder = regRangeQ("userSessionId", ConditionKey.CK_GREATER_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #7
Source File: BsRequestHeaderCQ.java From fess with Apache License 2.0 | 5 votes |
public void setWebConfigId_LessEqual(String webConfigId, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = webConfigId; RangeQueryBuilder builder = regRangeQ("webConfigId", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #8
Source File: BsWebAuthenticationCQ.java From fess with Apache License 2.0 | 5 votes |
public void setUpdatedTime_GreaterEqual(Long updatedTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = updatedTime; RangeQueryBuilder builder = regRangeQ("updatedTime", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #9
Source File: BsBadWordCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedBy_LessThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdBy; RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #10
Source File: BsThumbnailQueueCQ.java From fess with Apache License 2.0 | 5 votes |
public void setThumbnailId_LessEqual(String thumbnailId, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = thumbnailId; RangeQueryBuilder builder = regRangeQ("thumbnail_id", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #11
Source File: BsPathMappingCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedTime_GreaterEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdTime; RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #12
Source File: BsRoleTypeCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedBy_GreaterEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdBy; RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #13
Source File: BsSearchLogCQ.java From fess with Apache License 2.0 | 5 votes |
public void setHitCount_GreaterEqual(Long hitCount, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = hitCount; RangeQueryBuilder builder = regRangeQ("hitCount", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #14
Source File: BsSearchLogCQ.java From fess with Apache License 2.0 | 5 votes |
public void setUserInfoId_GreaterEqual(String userInfoId, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = userInfoId; RangeQueryBuilder builder = regRangeQ("userInfoId", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #15
Source File: BsElevateWordCQ.java From fess with Apache License 2.0 | 5 votes |
public void setBoost_LessEqual(Float boost, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = boost; RangeQueryBuilder builder = regRangeQ("boost", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #16
Source File: BsRelatedContentCQ.java From fess with Apache License 2.0 | 5 votes |
public void setUpdatedBy_LessEqual(String updatedBy, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = updatedBy; RangeQueryBuilder builder = regRangeQ("updatedBy", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #17
Source File: BsCrawlingInfoCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedTime_LessEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdTime; RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #18
Source File: BsAccessTokenCQ.java From fess with Apache License 2.0 | 5 votes |
public void setPermissions_LessThan(String permissions, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = permissions; RangeQueryBuilder builder = regRangeQ("permissions", ConditionKey.CK_LESS_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #19
Source File: BsWebConfigCQ.java From fess with Apache License 2.0 | 5 votes |
public void setDescription_LessEqual(String description, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = description; RangeQueryBuilder builder = regRangeQ("description", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #20
Source File: BsRelatedQueryCQ.java From fess with Apache License 2.0 | 5 votes |
public void setTerm_LessThan(String term, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = term; RangeQueryBuilder builder = regRangeQ("term", ConditionKey.CK_LESS_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #21
Source File: BsDataConfigCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedBy_LessEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdBy; RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #22
Source File: BsLabelTypeCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedBy_LessThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdBy; RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #23
Source File: BsRelatedQueryCQ.java From fess with Apache License 2.0 | 5 votes |
public void setUpdatedTime_LessThan(Long updatedTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = updatedTime; RangeQueryBuilder builder = regRangeQ("updatedTime", ConditionKey.CK_LESS_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #24
Source File: BsSearchLogCQ.java From fess with Apache License 2.0 | 5 votes |
public void setUserSessionId_LessEqual(String userSessionId, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = userSessionId; RangeQueryBuilder builder = regRangeQ("userSessionId", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #25
Source File: BsCrawlingInfoCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedTime_GreaterEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdTime; RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #26
Source File: BsWebConfigCQ.java From fess with Apache License 2.0 | 5 votes |
public void setIncludedUrls_LessEqual(String includedUrls, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = includedUrls; RangeQueryBuilder builder = regRangeQ("includedUrls", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #27
Source File: BsScheduledJobCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCronExpression_LessEqual(String cronExpression, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = cronExpression; RangeQueryBuilder builder = regRangeQ("cronExpression", ConditionKey.CK_LESS_EQUAL, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #28
Source File: BsRelatedContentCQ.java From fess with Apache License 2.0 | 5 votes |
public void setSortOrder_GreaterThan(Integer sortOrder, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = sortOrder; RangeQueryBuilder builder = regRangeQ("sortOrder", ConditionKey.CK_GREATER_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #29
Source File: BsRelatedQueryCQ.java From fess with Apache License 2.0 | 5 votes |
public void setVirtualHost_LessThan(String virtualHost, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = virtualHost; RangeQueryBuilder builder = regRangeQ("virtualHost", ConditionKey.CK_LESS_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }
Example #30
Source File: BsDuplicateHostCQ.java From fess with Apache License 2.0 | 5 votes |
public void setCreatedTime_GreaterThan(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) { final Object _value = createdTime; RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_THAN, _value); if (opLambda != null) { opLambda.callback(builder); } }