lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Hajek <Joe.Ha...@blackbox.net>
Subject Re(2): Lucene with Number+Text
Date Mon, 25 Mar 2002 17:28:49 GMT
Hi,

i experienced that if you look for the exact match with numbers it works, but not for wildcards.
you have to build your own analyzer. look at the sources and override the way lucene determines
word seperators

regards joe

Ian Lea <ian@digimem.net> writes on 
Mon, 25 Mar 2002 16:03:39 +0100 (MET):

> 
> > I've problem searching for number in Lucene.
> > I'm using StandardAnalyzer for Index/Search.
> >
> > In my document, I have a field contains text
> > "this is a test for lucene with number 1727a and 1992 and 3562"
> >
> > - I was able to search for a 1992 or 3562.
> > - However, search return empty when I try to search for 1727 or
> > 1727a. It 
> > seems like it didn't index number and text when it's one word. 
> > Please help
> 
> Are you sure this is using StandardAnalyzer on the latest
> release (1.2 rc4)? If I index that string and search
> for 1727a I get a hit.
> 
> 
> 
> --
> Ian.
> 
>
> ----------------------------------------------------------------------
> Searchable personal storage and archiving from
> http://www.digimem.net/
> 


--
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