lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: Indexing multiple keywords in one field?
Date Tue, 31 May 2005 08:06:15 GMT

Le 30 mai 05, à 22:13, Doug Hughes a écrit :
> Ok, so more than one keyword can be stored in a keyword field.  
> Interesting!

Yes, yes, yes!! You can do:

doc.add("link","xx");
doc.add("link","yy");

and matches will match any of them!
I found this in the book and not in the javadoc and I'd recommed adding 
it in the javadoc of the add method, it's a non-obvious goodness which 
suits all forms of scalability!

paul




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


Mime
View raw message