Skip to content

Commit

Permalink
Adding explain()
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary A. Stafford committed Sep 12, 2018
1 parent ad85bb9 commit a59b7a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions gke/gke commands
Expand Up @@ -29,3 +29,4 @@ gcloud dns --project=wp-search-bot record-sets transaction execute --zone=chatbo
gcloud auth configure-docker
docker tag garystafford/wp-es-demo:latest gcr.io/wp-search-bot/wp-es-demo:latest
docker push gcr.io/wp-search-bot/wp-es-demo:latest
gcloud container images list
Expand Up @@ -8,8 +8,6 @@
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.SearchHit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder;
import org.springframework.data.elasticsearch.core.query.SearchQuery;
Expand Down Expand Up @@ -58,6 +56,7 @@ public List<ElasticsearchPost> dismaxSearch(String value, int start, int size, f
.setSize(size)
.setFrom(start)
.setMinScore(minScore)
.setExplain(true)
.execute()
.actionGet();
List<SearchHit> searchHits = Arrays.asList(response.getHits().getHits());
Expand Down

0 comments on commit a59b7a2

Please sign in to comment.