Elastic search : Searching for integers with wildcards
问题 I am currently using the tire client for elastic search. Lets say I have a field which is indexed as a field of type long in my elastic search mapping. I am trying to achieve something like this: search.query {|query| query.string "30*", :fields => ['id']} Here 'id' is the long field about which I was talking about. But since I specify the fields in the query, the wildcard doesn't work and I end up getting the exact match as the only result. But doing the same thing works with the _all search