Re: Fulltext search by number


(richie yan) #1

try to use
'http://localhost:9200/index/type/_search?q=phonenormal:"80297894512"&pretty=true'
maybe it works!

On Thursday, July 5, 2012 4:37:27 PM UTC+8, Ashot Galstyan wrote:

Good day. At our project we have the following issue.

There's a string field "phonenormal" that contains phone numbers. We've
got
a record with data like this "80297894512 7272".

So when we try to make a fulltext search like
curl -XGET
'
http://localhost:9200/index/type/_search?q=phonenormal:80297894512&pretty=true'

we got nothing.

If we shorten the phone number to 8029789451 and search
curl -XGET
'
http://localhost:9200/index/type/_search?q=phonenormal:8029789451&pretty=true'

the record is returned correctly.

The other values for phonenormal like 29789, 0297894512, 7272 give correct
result too.

Could you help to solve the problem?

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Fulltext-search-by-number-tp4020113.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #2