lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aruna Raghavan <Aru...@opin.com>
Subject RE: Phone number Searches
Date Thu, 14 Mar 2002 14:32:30 GMT
Hi,
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
correct?
Thanks,
Aruna.

-----Original Message-----
From: Aruna Raghavan [mailto:ArunaR@opin.com]
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?
Thanks!
Aruna.

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message