Hi ,
I am trying to search a Text field using SQL-ES with LIKE here is the sample code
GET /_sql
{
"query":""select * from indexname where customer LIKE '%AR-D'"
}
here I am getting resultset only AR-D ,but i want all ar-D,AR-d....etc
Hi ,
I am trying to search a Text field using SQL-ES with LIKE here is the sample code
GET /_sql
{
"query":""select * from indexname where customer LIKE '%AR-D'"
}
here I am getting resultset only AR-D ,but i want all ar-D,AR-d....etc
For text
fields, it's recommended you use the full-text search functions ES SQL supports: Full-Text Search Functions | Elasticsearch Guide [7.x] | Elastic
Hi @Andrei_Stefan ,
Thank you
here these full text search is giving me result set which contains AR as words i,e
CSV-AR,DVR-AR...etc .
But I want only records with AR-D
I am using 7.3.2 version of ES and default analyzer
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.