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.
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 simon@prodpad.com 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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.