Mailing List Archive

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>
RE: Phone number Searches [ In reply to ]
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>
Re: Phone number Searches [ In reply to ]
Recompile Lucene with debug on, them you will see exactly what it does.


> -----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.
--
Norbert PabiĀ¶

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