lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Che Dong" <ched...@yahoo.com>
Subject Re: seach impossible with numbers
Date Fri, 19 Oct 2001 09:18:54 GMT
if you wanna indexing digit and letter mixed words just change LowerCaseTokinzer.java in com/lucene/analysis/
line 62:
      if (Character.isLetter(c)) { 
=>   if (Character.isLetterOrDigit(c)) { 
then the digit and letter mixed words, like "U2", "fifa98" will tokened and indexed as one
word.
I think it should be default for there too much words in the world now: like "fifa98", telphone
number etc.


Che Dong

----- Original Message ----- 
From: "eou" <eou@free.fr>
To: <lucene-user@jakarta.apache.org>
Sent: Wednesday, October 17, 2001 6:04 AM
Subject: seach impossible with numbers


> Hello lucene-user,
> 
> 
> > Hello
> hi,
> 
> > 
> > I download your webapplication in jsp concerning lucene.
> > It is very well, with my tomcat server... congralutations!
> Thanks
> > I create index for severals documents.
> > I use some requet like "text + text".... yes
> >                       "text - text".... yes
> >                       "text AND text"... yes
> >                       "AUTHOR:text"... no
> >                       "keywords:text"... no
> > 
> > And i would like make a search with number, for example a year like
> > 1999 :-) and i obtain no results! why? can you help me?
> I don't know. Maybe the tokenizer filters out numbers?
> As I was working a bit more with the jsp pages, I found 
> a bug, disabling the Create checkbox.
> I will post the fix in the next few days. An some simple tokenizer
> sample too..
> > 
> > Sorry i am beginner with lucene
> > thanks  lot for your help
> Well i'm a beginner, too. :-)
> 
> I don't mind directly answering this email, but 
> there is the wunderful mailing list lucene-user@jakarta.apache.org
> so everybody can share, and add comments, so please use this 
> mailing list!
> 
> bye
>   
> 
> -- 
> Best regards,
>  eou                          mailto:eou@free.fr
> 
Mime
View raw message