How to merge terms and match_all

Hi Guys,

I'm trying to merge both statement to one search as below detail

1. query.terms : I get filter set ("A","B","C") from drop down list on
webpage

{

"query": {

"filtered": {

  "query": {

    "bool": {

      "should": [

        {

          "terms": {

            "field1.raw": [

                "A","B","C"

            ]

          }

        }

      ]

    }

  }

}

}

}

2. query.match : I get filter data ("D E F") from text box on webpage
(Universal Search)

{

"query": {

"filtered": {

  "query": {

    "match": {

      "_all": "D E F"

    }

  }

}

}

}

So I need to search by get filter information from drop down and text box
on webpage to query data in ES in same time, Is it possible?

If you need more informatin, please let me know.

Thanks
Hiko

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8587e6ca-3035-4b91-9652-a4562902a616%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.