php - Searching in an array indexed in ElasticSearch -


I have indexed a document in ElasticSearch which contains arrays like this: doc [" match "] [" eventType "] ==" requires a query "league" )

I am using ElasticSearch-PHP api 1.1.0 and thus tried to query without success : ['Event'] ['eventType'] = 'league'; $ params ['body'] ['query'] ['match'];

I also tried:

  $ params ['body'] ['query'] ['match'] ['match'] -> EventType = 'league' ;   

What is the right way to do such searches? There are no such examples in the documentation.

Can you convert this JSON to a php object?

  {"query": {"match": {"match.eventType": "League "}}}   

I think this work.

Comments

Popular posts from this blog

c# - Textbox not clickable but editable -

Matlab transpose a table vector -

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -