Search for a number


(Alex Tabaksmann) #1

Hi,

my indexed field is a json field: [2,3,6,10]
I wand to search for number occurences in that field - if i do

    $keywordsQuery = new \Elastica_Query_Text();
    $keywordsQuery->setFieldQuery('eventtypes', "2");
    $events  = $finder->find ($keywordsQuery);

It will only find Entitys with [2] but not [2,3,5]

How can i fix that?

Thanks!


(system) #2