# Wildcard search on fields using multi-match while not searching sub fields

**URL:** <https://discuss.elastic.co/t/wildcard-search-on-fields-using-multi-match-while-not-searching-sub-fields/125063>\
**Category:** Elasticsearch\
**Created:** [March 21, 2018, 7:31pm UTC](https://discuss.elastic.co/t/wildcard-search-on-fields-using-multi-match-while-not-searching-sub-fields/125063 "2018-03-21T19:31:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathanael\_Burt](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@Nathanael\_Burt](https://discuss.elastic.co/u/Nathanael_Burt)\
**Post date:** [March 21, 2018, 7:31pm UTC](https://discuss.elastic.co/t/wildcard-search-on-fields-using-multi-match-while-not-searching-sub-fields/125063/1 "2018-03-21T19:31:06Z")

</div>

We have a mapping that has different fields for different language analyzers. I've created a gist with a simplified version of it here: [https://gist.github.com/nburt/cea693045ea0e81566d5b2a27b0e77e0](https://gist.github.com/nburt/cea693045ea0e81566d5b2a27b0e77e0)

When we know the language we can query on "sourceEn" or "sourceEn.caseSensitive", however sometimes we need to search across all languages. My first thought was to use a multi match query with a wildcard, e.g. "source\*" or "source\*.caseSensitive".

For the first case of "source\*" does the wildcard search across all subfields as well? We'd like for "source\*" to only search the main field, "source\*.caseSensitive" to search all case sensitive sub-fields, etc. Would that work or is there another way to accomplish this?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 18, 2018, 7:31pm UTC](https://discuss.elastic.co/t/wildcard-search-on-fields-using-multi-match-while-not-searching-sub-fields/125063/2 "2018-04-18T19:31:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
