lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Re: Delete / Update facets from taxonomy index
Date Thu, 09 Oct 2014 18:24:58 GMT
Hi

You cannot remove facets from the taxonomy index, but you can reindex a
single document and update its facets. This will add new facets to the
taxonomy index (if they do not already exist). You do that just like you
reindex any document, by calling IndexWriter.updateDocument(). Just make
sure to rebuild the document with FacetsConfig.

Shai

On Tue, Oct 7, 2014 at 12:42 AM, wesli <wesli@hotmail.com> wrote:

> I'm using lucene for a full text search on a online store.
> I've build a indexer program which creates a lucene and a taxonomy index.
> The taxonomy index contains facets with categories and article features
> (like color, brand, etc.).
> Is it possible to re-add or update single document facets? F.g. the shop
> owner changes the category of an article or some feature (like color f.g.).
> As I read in the documentation, the taxonomy index can be rebuild but it is
> not possible to re-add (delete and add) facets.
> I don't want to rebuild the whole taxonomy index each time when some single
> article (document) facet is changed.
> Is there another solution to update the taxonomy index?
> I'm using lucene 4.10
>
> Regards
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Delete-Update-facets-from-taxonomy-index-tp4163014.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message