I indexed some movie data. Each movie has a Genre field that sometimes contains an array of keywords (ex: "Comedy", "Action", "Romance").
When I do a query:
GET movies/_search
{
"query" : {
"bool" : {
"must" : {"match" : {"Genre" : "Comedy"}}
}
}
}
The above query returns only movies that have only Comedy as its Genre, if the document's Genre is "Comedy", "Action", I don't see it. How do I do a search so that I can see all movies that have "Comedy" as one of its Genres.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.