diff --git a/src/main/java/com/techlooper/service/impl/JobAggregatorServiceImpl.java b/src/main/java/com/techlooper/service/impl/JobAggregatorServiceImpl.java index 8cb0a4c66..3a214d92c 100644 --- a/src/main/java/com/techlooper/service/impl/JobAggregatorServiceImpl.java +++ b/src/main/java/com/techlooper/service/impl/JobAggregatorServiceImpl.java @@ -264,7 +264,8 @@ private NativeSearchQueryBuilder getJobListingQueryBuilder(JobSearchCriteria cri } else { queryBuilder = boolQuery(); if (StringUtils.isNotEmpty(criteria.getKeyword())) { - ((BoolQueryBuilder) queryBuilder).must(multiMatchQuery(criteria.getKeyword(), "jobTitle", "company")); + ((BoolQueryBuilder) queryBuilder).must( + multiMatchQuery(criteria.getKeyword()).field("jobTitle", 8).field("company", 2)); } if (StringUtils.isNotEmpty(criteria.getLocation())) { ((BoolQueryBuilder) queryBuilder).must(matchQuery("location", criteria.getLocation()).operator(Operator.AND));