Completion Suggester using Elastica Library

Recently, I was working on the basic example of completion Suggester using Elastica PHP Library. But Elastica doesn’t provide the support for context and completion suggester. The only way right now is to use RAW query with Elastica to achieve the result. I have written down the basic example below. You can add more parameters inside query variable.


Let me know, If you find it helpful.