lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aruna Raghavan <>
Subject RE: Phone number Searches
Date Thu, 14 Mar 2002 14:32:30 GMT
I have just noticed that "1-954-612-1276" (phrase query) works but a search
for 1-954-612-1276 is returning all documents I have probably because in the
latter case, lucene searcher is treating the "-" as exclusion. Is this

-----Original Message-----
From: Aruna Raghavan []
Sent: Wednesday, March 13, 2002 10:48 AM
To: Lucene Users List
Subject: Phone number Searches

Hello All,
I tried doing a search for a phone number 1-954-612-1276. It worked fine. I
am using a StandardAnalyzer for both indexing and searching. From looking at
StandardTokenizer.jj and StandardAnalyzer, "-" is a valid character. So, how
is this differentiated from "-" that we use for exclusion such as
+(dog)-(cat) i.e, all dogs but no cats?

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message