Hey, not sure here, whats your expectation of the data being returned? If you search for "1", should "1", "10", "111" be returned (otherwise a range query would make more sense)? If so, it might make more sense to have an additional multi field as a not_analyzed string and use that one for these kind of queries...
--Alex On Wed, Jun 4, 2014 at 11:13 AM, Simon Cast <[email protected]> wrote: > Hi, > > I'm trying to use a prefix search on an integer field that is stored and > not analysed. From the documentation I would have expected that sending 1 > would return all numbers starting with 1 but that doesn't seem to be the > case. > > Does the prefix search work on integer fields? > > Regards, > > Simon > > -- > 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 protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/110f1887-c6e0-4f77-9ece-689f0a42b306%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/110f1887-c6e0-4f77-9ece-689f0a42b306%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_uDVczuDkiBHD9ZZgx9iR7TQKRGWZZu1%2B73TQhg4kgNg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
