Permalink
Browse files

Changed ES client search type to QUERY_THEN_FETCH.

  • Loading branch information...
adamalix authored and Holden Karau committed Apr 10, 2012
1 parent 445ed39 commit 03c537aefe0db7841dc2f41b1c37b8c35b0944ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/scala/com/foursquare/slashem/Schema.scala
@@ -476,7 +476,7 @@ trait ElasticSchema[M <: Record[M]] extends SlashemSchema[M] {
.setQuery(query)
.setFrom(from)
.setSize(limit)
- .setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
+ .setSearchType(SearchType.QUERY_THEN_FETCH)
val request = qb.sort match {
case None => baseRequest
//Handle sorting by fields quickly

0 comments on commit 03c537a

Please sign in to comment.