lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luc...@nitwit.de
Subject Re: Zero hits for queries ending with a number
Date Sat, 03 Apr 2004 08:19:11 GMT
On Friday 02 April 2004 23:48, Erik Hatcher wrote:
> On Apr 2, 2004, at 10:00 AM, lucene@nitwit.de wrote:
> > On Saturday 13 March 2004 11:06, Otis Gospodnetic wrote:
> >> Field.Keyword is suitable for storing data like Url.  Give that a try.
> >
> > I just tried this a minute ago and found that I cannot use wildcards
> > with
> > Keywords: url:www.yahoo.*
>
> You *can* use wildcards with keywords (in fact, a keyword really has no
> meaning once indexed - everything is a "term" at that point).

Well, I just tried. I  also was surprised actually - but it just didn't work.

I can use wildcards for

  doc.add(Field.Text("url", row.getString("url")));

but I cannot for

  doc.add(Field.Keyword("url", row.getString("url")));

>   - create a utility (I've posted one on the list in the past) that
> shows what your analyzer is doing graphically.

Interesting. Can you give me subject/date of that posting?

Timo

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


Mime
View raw message