Hey Peter,

They're likely using a filtered query 
<http://www.elastic.co/guide/en/elasticsearch/reference/1.5/query-dsl-filtered-query.html>.
 
Maybe on a "status" field for the "is:open" and a "type" field for the 
"is:issue".

It could look something like this:

{
   "query":{
      "filtered":{
         "query":{
            "multi_match":{
               "query":"search term",
               "fields":[
                  "title",
                  "body",
                  "tags"
               ]
            }
         }
      },
      "filter":{
         "and":{
            "filters":[
               {
                  "term":{
                     "status":"open"
                  }
               },
               {
                  "terms":{
                     "type":"issue"
                  }
               }
            ]
         }
      }
   }
}



On Thursday, April 30, 2015 at 7:22:11 PM UTC-4, Peter Sorensen wrote:
>
> Sorry for the vague title. If I knew what to call what I was looking for, 
> I'd have a much easier time finding it!
>
> Anyways, I often see sites using filters right in the query box. For 
> instance, on Github, you can see open issues by typing ` is:open: is:issue 
> {search term} `
>
> What element of ES is used to perform this?
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/4b9df802-5197-45b5-987a-7c7e480b6d7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to