Skip to content

Commit

Permalink
Changed ES client search type to QUERY_THEN_FETCH.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalix authored and Holden Karau committed Apr 10, 2012
1 parent 445ed39 commit 03c537a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/foursquare/slashem/Schema.scala
Expand Up @@ -476,7 +476,7 @@ trait ElasticSchema[M <: Record[M]] extends SlashemSchema[M] {
.setQuery(query) .setQuery(query)
.setFrom(from) .setFrom(from)
.setSize(limit) .setSize(limit)
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH) .setSearchType(SearchType.QUERY_THEN_FETCH)
val request = qb.sort match { val request = qb.sort match {
case None => baseRequest case None => baseRequest
//Handle sorting by fields quickly //Handle sorting by fields quickly
Expand Down

0 comments on commit 03c537a

Please sign in to comment.