Elasticsearch + tire gem with exact match


(Dom Hodgson) #1

Hey folks (I'm crossposting this from SO as hopefully this gets a bit more
attention)

I'm currently using Tire to access my ES data however I've not been able to
get it to do an exact match, for instance

User.search :per_page => 10 do
query do
boolean do
must { match :first_name, 'tom'}
must { match :last_name, 'smith'}
end
endend

However that returns firstnames that are tom, tomas, tommy and tomiena..
when I'd like it to only match tom.

I've tried a few things but can't work out where I'm going wrong

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #2