Hi Clive, If you are considering indexing consolidation, then upgrading to 4.3 is the right way since a lot of improvements have been made to the facet module (performance, APIs).
Also, 10K+ shards ... wow. That must be a big deployment you have there :). I'm sure it will bring with it fun requirements for facets! Shai On Mon, May 6, 2013 at 10:50 PM, kiwi clive <kiwi_cl...@yahoo.com> wrote: > Hi Shai, > > Thanks very much for the reply. I see there is not a quick win here but as > we are going through an index consolidation process, it may pay to make the > leap to 4.3 and put in facetting while I'm in there. We will get facetting > slowly through the back door while the consolidation runs (we have 10,000+ > shards). If it were not for the consolidation required, I thin bobo would > have been the way forward. > > > I appreciate you taking the time to explain the situation. > > Clive > > > > ________________________________ > From: Shai Erera <ser...@gmail.com> > To: "java-user@lucene.apache.org" <java-user@lucene.apache.org>; kiwi > clive <kiwi_cl...@yahoo.com> > Sent: Monday, May 6, 2013 5:56 AM > Subject: Re: search-time facetting in Lucene > > > Hi Clive, > > In order to use Lucene facets you need to make indexing time decisions. > It's not that you don't make these decisions anyway, even with Solr -- for > example, you need to decide how to tokenize the fields by which you want to > facet, or in Lucene 4.0 index them as SortedSetDocValuesField. > > If you upgrade to Lucene 4.3, you can avoid the use of the taxonomy index, > in exchange for real simple facetting, by using > SortedSetDocValuesFacetFields, but again you will need to reindex your > data. > > Shai > > > On Mon, May 6, 2013 at 6:22 AM, kiwi clive <kiwi_cl...@yahoo.com> wrote: > > > Hello all > > > > > > Lucene version 3.6.1. > > > > Sorry if this is a really stupid question, but is it possible to use > > search-time facetting on an existing lucene index without the need to > > reindex? > > > > My (limited) understanding is that FacetsCollector will pull facet data > > from indexes that have been created with the use of TaxonomyWriter and > > CategoryDocumentBuilder. It does look like the Bobo contribution does not > > require index changes (and solr looks similar) but I was wondering what > > lucene does out-of-the-box. > > > > > > So, what I need to achieve is: > > - (simple) facetted search with raw lucene without the need to reindex. > > - use of solr is not an option but a lucene version upgrade is. > > > > Am I right in thinking the implementation of facetting is different in > > solr to that in lucene ? > > > > If you could point me a resource so I can learn more, I'd be very > grateful. > > > > Many thanks, > > Clive