New to ES so forgive if answer's obvious. I have a domain object 'widget'
with numeric field 'code'. Can I construct a DSL query to return all
widgets whose 'code' value contains a given sequence of digits (think
autocomplete use case)? For example input '13' would match widgets with
codes: 13, 1013, 40131.
I tried using a wildcard query
val = "13*") but looks like that type of query does not work on numeric
fields. Also tried regexp filterhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-regexp-filter.htmlwithout success.
Do I need to map 'code' as a string field and then use regexp filter? is
the answer different if the field is instead '_id'http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-id-field.html
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 email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.