lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lu <chris...@gmail.com>
Subject Re: Problem with multiple values to a single field.
Date Sat, 09 Jul 2005 20:49:08 GMT
Right, Just add it twice, your document will be linked to the two categories.

Chris Lu
----
Free-Text Search on Any Database
http://www.dbsight.net

On 7/9/05, xing@mac.com <xing@mac.com> wrote:
> I need to index multiple values to a single document field, such as
> category. An entry can be associated with 2 or more categories. When the
> search is performed, the user can opt to select result from documents
> containing only one category value. What would be the best way to go
> about this?
> 
> Does lucene allow me to use the doc.add() method twice for the same
> field and store two different values?
> 
> Thanks a bunch.
> 
> Xing
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 


-- 
Chris Lu
---------------------
Full-Text Search on Any Database
http://www.dbsight.net

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