Wildcard searching in string properties of objects in x-osdu-indexing flattened arrays isn't working
We are able to query for exact matches in strings that are properties of objects in arrays. For example, with this schema fragment:
... {"ConceptTags": {
"type":"array",
"x-osdu-indexing": {"type":"flattened"},
"properties": {
"ConceptTag": {"type":"string"},
...
}}}
A query to the search service with:
{"query":"data.ConceptTags.ConceptTag:\"schlumberger limited\""}
returns the expected documents. A query with a wildcard:
{"query":"data.ConceptTags.ConceptTag:\"schlumberger*\"}
returns nothing. However, wildcard queries work fine in fields that are not flattened in arrays, like this one that is in the same object definition as the ConceptTags array above:
... {"Title": {"type":"string"}}
(i.e., a wildcard search in the Title field works fine.)
Is this expected behavior for string properties of in objects in arrays? It's not obvious from reading the Elastic documentation on flattened fields that wildcarding isn't supported.