If using the SQL operator "Like" to query data, it will return data, even if they only partially match. For example, if I am looking for food, and there is an element in my db called "raisins" when using SQL, the query returns "raisins", even if my search contains only "rai". In elasticsearch, the request will not return a record if the full name is not specified (in this case, "highlight"). How can I make elasticsearch behave similarly to the SQL statement. I am using Rails 3.1.1 and PostgreSQL. Thanks!
Steve
source share