Hi,
I am new to elasticsearch and I am struggling with a simple syntax.
I created 4 elements like this:
'{"numvente":1,"numlignvente":1,"produit":2866,"prixunitaire":22.32,"qte":20,"vendeur":"D","numtel":"0653243949","rayon":"ELECTRO","magasin":"IDF","region":"1"}
'
'{"numvente":1,"numlignvente":2,"produit":4358,"prixunitaire":3.39,"qte":2,"vendeur":"D","numtel":"0653266649","rayon":"ELECTRO","magasin":"IDF","region":"1"}
'
'{"numvente":1,"numlignvente":3,"produit":2538,"prixunitaire":20.253,"qte":1,"vendeur":"D","numtel":"069988203","rayon":"ELECTRO","magasin":"IDF","region":"1"}
'
'{"numvente":2,"numlignvente":1,"produit":2230,"prixunitaire":324.99,"qte":3,"vendeur":"D","numtel":"0123456577","rayon":"ELECTRO","magasin":"IDF","region":"1"}
'
My goal is to be able to search through several elements of my index. In
this case, I would be able to find any products or phone numbers containing
the "53" string.
Could you help me correcting this?
{
"query": {
"filtered": {
"query": {
"term": "53"
},
"filter": {
"match_all": {}
}
}
}
}
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.