|
77 | 77 | @Ignore
|
78 | 78 | public abstract class BaseQueryTestCase<QB extends QueryBuilder<QB>> extends ElasticsearchTestCase {
|
79 | 79 |
|
| 80 | + protected static final String OBJECT_FIELD_NAME = "object"; |
80 | 81 | protected static final String DATE_FIELD_NAME = "age";
|
81 | 82 | protected static final String INT_FIELD_NAME = "price";
|
82 | 83 | protected static final String STRING_FIELD_NAME = "text";
|
83 | 84 | protected static final String DOUBLE_FIELD_NAME = "double";
|
84 | 85 | protected static final String BOOLEAN_FIELD_NAME = "boolean";
|
85 | 86 | protected static final String[] mappedFieldNames = new String[]{DATE_FIELD_NAME, INT_FIELD_NAME,
|
86 |
| - STRING_FIELD_NAME, DOUBLE_FIELD_NAME, BOOLEAN_FIELD_NAME}; |
| 87 | + STRING_FIELD_NAME, DOUBLE_FIELD_NAME, BOOLEAN_FIELD_NAME, OBJECT_FIELD_NAME}; |
87 | 88 |
|
88 | 89 | private static Injector injector;
|
89 | 90 | private static IndexQueryParserService queryParserService;
|
@@ -140,7 +141,10 @@ protected void configure() {
|
140 | 141 | INT_FIELD_NAME, "type=integer",
|
141 | 142 | DOUBLE_FIELD_NAME, "type=double",
|
142 | 143 | BOOLEAN_FIELD_NAME, "type=boolean",
|
143 |
| - STRING_FIELD_NAME, "type=string").string()), false); |
| 144 | + STRING_FIELD_NAME, "type=string", |
| 145 | + OBJECT_FIELD_NAME, "type=object", |
| 146 | + OBJECT_FIELD_NAME+"."+DATE_FIELD_NAME, "type=date", |
| 147 | + OBJECT_FIELD_NAME+"."+INT_FIELD_NAME, "type=integer").string()), false); |
144 | 148 | currentTypes[i] = type;
|
145 | 149 | }
|
146 | 150 |
|
|
0 commit comments