# Phrase\_prefix with cross\_fields

**URL:** <https://discuss.elastic.co/t/phrase-prefix-with-cross-fields/280792>\
**Category:** Elasticsearch\
**Created:** [August 9, 2021, 10:48am UTC](https://discuss.elastic.co/t/phrase-prefix-with-cross-fields/280792 "2021-08-09T10:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razvan\_Todea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/razvan_todea/32/83769_2.png) [@Razvan\_Todea](https://discuss.elastic.co/u/Razvan_Todea)\
**Post date:** [August 9, 2021, 10:48am UTC](https://discuss.elastic.co/t/phrase-prefix-with-cross-fields/280792/1 "2021-08-09T10:48:02Z")

</div>

We want the following use case, if a record is saved in the database with the following fields.

```auto
{
  "id": 1,
  "name": "Benefit",
  "address": "Supersonic"
} 

```

Queries such as these should match:

- `ben`
- `benefit super`
- `benefit supersonic`

How could be this achieved?

---

<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:** [September 6, 2021, 10:48am UTC](https://discuss.elastic.co/t/phrase-prefix-with-cross-fields/280792/2 "2021-09-06T10:48:18Z")

</div>

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