Can't you just add several values to the Store field? I.E: doc.addField(field.text(STOREFIELD, val1) doc.addField(field.text(STOREFIELD, val2)
-----Ursprungligt meddelande----- Från: Stuart Grimshaw [mailto:[EMAIL PROTECTED] Skickat: den 2 oktober 2006 10:09 Till: java-user@lucene.apache.org Ämne: Re: Indexing a single product in multiple categories. On Thursday 28 September 2006 10:12, Stuart Grimshaw wrote: > We have an existing lucene based search, and a recent change to the way we > organise our products has caused a bit of a problem for search results. > > Our products are arranged into subcategories, categories & stores. A > product can only be in 1 subcat or cat, but a cat can be in multiple > stores. We only index the primary cat because historically the multiple > store feature was depracated. > > Obviously I don't want to simply add another row to the index for each > store, as it would skew the results, especially when displaying a count of > the results, I can't add a new column for each store, because I don't know > how many stores it's going to be in. > > Does anyone have any ideas? Is my only option here really going to be to add some more colums? I've slept on it over the weekend, and not had any more bright ideas ... ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]