# Multi-valued search syntax?

**URL:** <https://discuss.elastic.co/t/multi-valued-search-syntax/22903>\
**Category:** Elasticsearch\
**Created:** [March 25, 2015, 7:27pm UTC](https://discuss.elastic.co/t/multi-valued-search-syntax/22903 "2015-03-25T19:27:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blake1024](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@blake1024](https://discuss.elastic.co/u/blake1024)\
**Post date:** [March 25, 2015, 7:27pm UTC](https://discuss.elastic.co/t/multi-valued-search-syntax/22903/1 "2015-03-25T19:27:54Z")

</div>

Greetings,

What I need is a match\_phrase\_prefix on a single field AND a normal match  
for text on any field. I have tried a lot of scenarios. Here is one of my  
latest:

```
curl -s -XGET 'http://localhost:9200/components/_search' -d '{
    "size": 20000,
    "query": {
            "bool": {
                "must": [
                    "match_phrase_prefix" : {
                        "classifications" : "myClass",
                    },
                    "match" : {
                        "_all" : "abcde",
                    }
                ]
            }
        }
    }
' 

```

I have tried many permutations of this with no success. Help would surely  
be appreciated.

Blake McBride

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f70d652c-a583-4dde-9a33-845fdab26ef0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f70d652c-a583-4dde-9a33-845fdab26ef0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![blake1024](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@blake1024](https://discuss.elastic.co/u/blake1024)\
**Post date:** [March 25, 2015, 9:12pm UTC](https://discuss.elastic.co/t/multi-valued-search-syntax/22903/2 "2015-03-25T21:12:27Z")

</div>

Tried this, right out of the box. Same SearchParseError.

```
curl -s -XGET 'http://localhost:9200/components/_search' -d '{
    "size": 20000,
    "query": {
            "bool": {
                "must": [
                    {"match_phrase_prefix" : {
                        "classifications" : "passive_components",
                    }},
                    {"match" : {
                        "_all" : "1000",
                    }}
                ]
            }
        }
    }
' |underscore pretty

```

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c3b42add-c2ce-448d-a3ea-0e5ce0a6742a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c3b42add-c2ce-448d-a3ea-0e5ce0a6742a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/multi-valued-search-syntax/22903/3 "2017-07-06T00:23:57Z")

</div>


