Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
phuonghuynh committed Sep 10, 2015
2 parents de8515d + 3e3702d commit 41ccac2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 41ccac2

Please sign in to comment.