Please, help me with the bool filter in my query. I need a products which
contain markdowned SKUs which have stock more than 0. I wrote the query,
but it returns me the markdowned products only (including those, which skus
have stock = 0). Here's the query. https://gist.github.com/ArFeRR/12610c52a57dce9b0728 My the 'skus' is mapped
as a 'type: object' in my 'product' index. Please, help, guys.
Here's my product index mapping. (One product has many SKUs). https://gist.github.com/ArFeRR/772a75775dd972e72778
So, I need to get only those products, which are markdowned and which
markdowned SKUs have stock more than 0. I hope i wrote everything
neccesary. Please, help!
Everything looks correct to me though it’s not a complete script so I can not reproduce it.
It might be an issue with the tool you are using to send the request.
Because you are doing a GET _search (which is correct), some browsers/tools don’t support GET with a body.
So you end up running a match_all query…
But if you can see aggregation results, that’s not the problem here.
Le 26 nov. 2014 à 15:20, Artem Frolov keem23@gmail.com a écrit :
Please, help me with the bool filter in my query. I need a products which contain markdowned SKUs which have stock more than 0. I wrote the query, but it returns me the markdowned products only (including those, which skus have stock = 0). Here's the query. elasticsearch query, doesn't work · GitHub My the 'skus' is mapped as a 'type: object' in my 'product' index. Please, help, guys.
Here's my product index mapping. (One product has many SKUs). the product index, to which i'm writing a queries · GitHub
So, I need to get only those products, which are markdowned and which markdowned SKUs have stock more than 0. I hope i wrote everything neccesary. Please, help!
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.