Added specific log level to check which shards were refreshed and which shards we searched on
This commit is contained in:
parent
d6ecdecc19
commit
3a5b325b23
|
@ -25,6 +25,7 @@ import org.elasticsearch.common.settings.ImmutableSettings;
|
|||
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.AbstractSharedClusterTest;
|
||||
import org.elasticsearch.junit.annotations.TestLogging;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
@ -143,7 +144,7 @@ public class SimpleSearchTests extends AbstractSharedClusterTest {
|
|||
assertHitCount(searchResponse, 1l);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test @TestLogging("action.search.type:TRACE,action.admin.indices.refresh:TRACE")
|
||||
public void simpleDateMathTests() throws Exception {
|
||||
prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder()).execute().actionGet();
|
||||
client().prepareIndex("test", "type1", "1").setSource("field", "2010-01-05T02:00").execute().actionGet();
|
||||
|
|
Loading…
Reference in New Issue