select count(*) from psql-widget-raw-log where path_string like '/test.html%'
I still couldn't query by prefix, wildcard, regexp after changed value in field from '/test.html' to '%2Ftest.html' ( or '%2Ftest.html', '\%2Ftest.html')
It's worked when using other field like 'user_group_id' or 'user_id', so I thought that I querying it in right way
Not exactly. You need to define an analyzer first. Then use the analyzer in your mapping.
Then you can try just with a term or match query instead of a prefix query.
If you need further help, please 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.
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.