# Search across multiple fields with a query string query

**URL:** <https://discuss.elastic.co/t/search-across-multiple-fields-with-a-query-string-query/308678>\
**Category:** Elasticsearch\
**Created:** [July 1, 2022, 4:38pm UTC](https://discuss.elastic.co/t/search-across-multiple-fields-with-a-query-string-query/308678 "2022-07-01T16:38:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jheebscs](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jheebscs](https://discuss.elastic.co/u/jheebscs)\
**Post date:** [July 1, 2022, 4:38pm UTC](https://discuss.elastic.co/t/search-across-multiple-fields-with-a-query-string-query/308678/1 "2022-07-01T16:38:13Z")

</div>

Hi

I have a query string query configured to search across multiple fields with type "most\_fields". Unfortunately when the query string consists of more than one word it only matches if all words occur in the same field. However what I need is that a document is found even if the words are spread across multiple fields. I tried type "cross\_fields" but it breaks the relevance scoring and is not usable for me. What I would need is a combined\_fields query, unfortunately this is not usable with a query string query.

Is there another way or workaround for solve my problem?

Thanks a lot for your help!

---

<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:** [July 29, 2022, 4:39pm UTC](https://discuss.elastic.co/t/search-across-multiple-fields-with-a-query-string-query/308678/2 "2022-07-29T16:39:09Z")

</div>

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