Here is an example based on your data: 
https://gist.github.com/dadoonet/64458f7423863d93c49e

HTH

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 16 juillet 2014 à 12:58:40, Dark Globe ([email protected]) a écrit:

Hi Elastic Searchers,

I am completely new to Elasticsearch but have been progressing well this week, 
I'm just hoping one of you may be able to help nudge me over the final hurdle.

I have a complete gist here that populates an index with 2 rock bands and their 
members and runs a successful nested search query to find bands containing 
members with the name Roger (2 results).

https://gist.github.com/saiglen/ad8b89836547c7e0ee60

However, what I also need is to be able to filter the results by other 
attributes, such as the year the band formed, or perhaps part of the band's 
name, 'Pink' for example. 1 or more additional filters.

I have been through the documentation and tried at least a dozen different JSON 
structures to try to get that final search to filter by year or band name in 
addition to the nested query, but without success :/

Everything I have tried so far has either returned no results at all or has 
just produced an error and failed entirely.

Can someone please help advise.

Cheers for any help.
--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a61b1bed-d4cf-4ad2-8234-fc37d53190c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.53c6648c.6b8b4567.86d7%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to