First time poster, also fairly new to using elastic search.
It could be the way I am using it but in the basic sense the queries I have are like something like: "Select all records from our projects that have X tags and are made by Y author".
The structure of my query is:
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{
"terms": {
"tags": ["x:tag"],
"execution": "and"
}
},
{
"query": {
"field": {
"author": "dudes@stuff.org"
}
}
}
]
}
}
},
"size": 7
}
My searches don't ever fail in retrieving data of some sort however they never have the author applied to the filter and are returning any authors they find.
Am I simply using Elasticsearch in a wrong fashion? Any insight would be great.