File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
server/src/test/java/org/elasticsearch/search/profile/query Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2626import org .elasticsearch .action .search .SearchResponse ;
2727import org .elasticsearch .action .search .SearchType ;
2828import org .elasticsearch .action .search .ShardSearchFailure ;
29+ import org .elasticsearch .common .settings .Settings ;
2930import org .elasticsearch .index .query .QueryBuilder ;
3031import org .elasticsearch .index .query .QueryBuilders ;
3132import org .elasticsearch .search .SearchHit ;
@@ -110,7 +111,9 @@ public void testProfileQuery() throws Exception {
110111 * to make sure the profiling doesn't interfere with the hits being returned
111112 */
112113 public void testProfileMatchesRegular () throws Exception {
113- createIndex ("test" );
114+ createIndex ("test" , Settings .builder ()
115+ .put ("index.number_of_shards" , 1 )
116+ .put ("index.number_of_replicas" , 0 ).build ());
114117 ensureGreen ();
115118
116119 int numDocs = randomIntBetween (100 , 150 );
You can’t perform that action at this time.
0 commit comments