On Thu, Jul 23, 2015 at 8:39 AM, Adam Retter <[email protected]> wrote:
> Sorry for the very delayed reply. I had to put this on hold whilst I > focused on another project. I am now revisiting this. No problem, the internet never forgets! > Would I be correct in thinking that IndexWriter.addIndexes only allows > me to add entries to an existing index, i.e. if I wanted to remove > entries this would not work for me. That's correct. > Also out of interest what happens > for updates, where there are entries for the same key in the core > index and in the new index for which I call addIndexes? Then you would have 2 docs for a given key, i.e. the old one is not replaced. It's logically as if you called IW.addDocument for all documents in the index passed to IW.addIndexes. Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
