Can anyone please help me identifying how to use wild cards for integer searches? I tried using the inline script but no luck. This is what I have tried (I have also tried with different regex pattern which works for javascript but here with the query, it does not work)..
My requirement is to support wild card search for integer fields? Do you suggest any other way to achieve? how can we use range query for this? If the field has the value say 00123789 and if I want to search with *7 how do I use range query for it?
Yes I have indexed those as String and those are working as well but sorting is an issue currently. if I index them as string then it will not sort it as number (sorting order will not be proper). so I am trying to see if we have wildcard support for integer fields or there is an easy way to achieve it.
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.