jonbwhite / elkuent

Elasticsearch ORM for Laravel
7 stars 0 forks source link

Add filtered match queries #9

Closed jasonjlock closed 9 years ago

jasonjlock commented 9 years ago

Using the default term filter returns unexpected results when you supply a string value that contains uppercase, punctuation, and spaces. A filtered match query will allow for better full text searching. A filtered match query can be applied with the 'match' operator when constructing an Eloquent query. See http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html for more deets.

jasonjlock commented 9 years ago

I'm gonna close this and focus on adding mappings to the model. Using the not_analyzed for exact matches seems like the way to go.