lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: Adding and Removing Facet Entries
Date Wed, 28 Aug 2019 20:21:09 GMT
Hello, Matt.
Just create a Document with all field instances attached and pass it to
IndexWriter.updateDocument(s)();

On Wed, Aug 28, 2019 at 9:16 PM Hicks, Matt <matt@outr.com> wrote:

> I'm trying to replicate the functionality that Apache Solr has for Atomic
> updates on documents (although, directly on a Facet field in this case).  I
> have a multi-valued facet field with potentially thousands of entries per
> document, and I'd like to be able to add and remove entries from the field
> on a document as efficiently as possible.  Can anyone point me in the right
> direction?  I'm essentially looking for something similar to `add-distinct`
> and `remove` from Solr's atomic updates functionality, just directly in
> Lucene.
>


-- 
Sincerely yours
Mikhail Khludnev

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