still i am getting suggestion 'suggest': {'my-suggestion': [{'text':'schin','offset':0,'length':5,'options': [{'text':'sachin', 'score': 0.75, 'freq': 1}]}
When i tried to put suggest inside terms list then i am getting RequestError: RequestError(400, 'x_content_parse_exception', 'unknown query [suggest]')
I need to get the suggestion only if var.keyword matches sports
You could use Phrase suggester to get the suggestions and collate to match on the "var" field. That way you would get all the suggestions and through the collate, for each doc to guarantee the "var" is the value you want, in your case "notsports"
This is not exact solution i required with respect to question, i will say more nearer solution, But thanks. I understood that "suggest" cannot done with inside terms. Correct me if i am wrong
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.