mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fb79d064d7
@ -333,9 +333,9 @@ public class SimpleSearchIT extends ESIntegTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testQueryNumericFieldWithRegex() throws Exception {
|
public void testQueryNumericFieldWithRegex() throws Exception {
|
||||||
createIndex("idx");
|
assertAcked(prepareCreate("idx").addMapping("type", "num", "type=integer"));
|
||||||
indexRandom(true, client().prepareIndex("idx", "type").setSource("num", 34));
|
ensureGreen("idx");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
client().prepareSearch("idx").setQuery(QueryBuilders.regexpQuery("num", "34")).get();
|
client().prepareSearch("idx").setQuery(QueryBuilders.regexpQuery("num", "34")).get();
|
||||||
fail("SearchPhaseExecutionException should have been thrown");
|
fail("SearchPhaseExecutionException should have been thrown");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user