curl localhost:9200/tweet/posts/_search -d '{ "query": { "and": [ { "wildcard": { "_all": "*pet*" } }, { "wildcard": { "_all": "*rom*" } } ] } }'
This gives me a parsing exception. I want to run a query like MySQL like(%test%)with condition I. Is there any other good way to do elastics in the search.
like(%test%)
Maybe something like this?
{ "query": { "bool": { "must": [ { "wildcard": { "_all": { "value": "*pet*" } } }, { "wildcard": { "_all": { "value": "*rom*" } } } ] } } }
Source: https://habr.com/ru/post/1540718/More articles:Is there a quick replacement for depreciating `SKPaymentTransaction.transactionReceipt`? - iosNode.js with fs.readFile cannot display file contents via http - node.jsDetach from IPython core without interrupting it - pythonWindbg Commands Heap -s and! Heap -stat does not match output - windowsHow to register a custom callback after Ember.RSVP.hash - ember.jsCan I use AES128 with GCM mode on iOS? - iosBash: How can I subtract two lines of time using bash? - bashApply XOR operation to byte array? - powershellAutomation algorithm for paired value grouping labels in R - algorithmHow to identify fully connected node clusters with igraph? - rAll Articles