Akshay wrote:

The use case is in context of replication. The master has a newly created empty index. When slave requests for data, don't do anything if its a newly
created index.

OK.

Hmm, but would master need to tell slave "I created a new index", even if new index happen to be created in a location that previously held an index? (Note: I know very little about replication, so maybe this could easily be out
of bounds).

What exactly do you mean by "fresh index created for the first time"?

Ie, does opening an IndexWriter with create=true over a Directory that
previously had a Lucene index not count as "fresh" for some reason?


Yes this didn't count as fresh for my question, sorry for not being clear.
Thanks.

OK then it sounds like generation==1 is the test you want.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to