in reply to Re: Queries for elastic search using perl
in thread Queries for elastic search using perl
Its not a boolean expression its just an indication for what we have to do in elastic search. (column08=Submit & column10=Delivered & column09=Something) If this is the condition I am passing to a function I need output as
(column08=Submit | column10=Delivered | column09=Something){ 'bool'=> { 'must'=> [ { 'term'=> {'column08'=> 'Submit'}}, { 'term'=> {'column10' => 'Delivered'}}, { 'term'=> {'column09' => 'Something'} ] } }
{ 'bool'=> { 'should'=> [ { 'term'=> {'column08'=> 'Submit'}}, { 'term'=> {'column10' => 'Delivered'}}, { 'term'=> {'column09' => 'Something'} ] } }
Can you help me in this how to do ???
|
|---|