Search a substring in a field


I'd like to search for a substring in the message field of my document, but I can't get it done.
The substring is "Error while initializing socket". I'd like to get it via curl. I already search a lot in the documentation and while trying I always get the wrong documents back.

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.