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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Chris Lu --------------------- Full-Text Search on Any Database http://www.dbsight.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]