Issue Details (XML | Word | Printable)

Key: LUCENE-1288
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael McCandless
Reporter: Jason Rutherglen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Add getVersion method to IndexCommit

Created: 19/May/08 02:04 PM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: None
Affects Version/s: 2.3.1
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1288.patch 2008-05-23 09:39 AM Michael McCandless 6 kB

Lucene Fields: New
Resolution Date: 28/May/08 11:01 AM


 Description  « Hide
Returns the equivalent of IndexReader.getVersion for IndexCommit
public abstract long getVersion();


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jason Rutherglen added a comment - 20/May/08 12:03 AM
Probably best to add getGeneration method

Michael McCandless added a comment - 20/May/08 08:53 AM
Are you suggesting instead or in addition to getVersion?

Jason Rutherglen added a comment - 20/May/08 11:51 AM
getGeneration in addition.

Will IndexCommit.getVersion return the same value as the IndexReader that created it? I'm using this in conjunction with IndexReader to close an object associated with the IndexReader upon deletion of the snapshot.


Michael McCandless added a comment - 20/May/08 12:01 PM
OK I'll do both. Yes, getVersion() will be the same as IndexReader.getVersion() if that reader was opened on the same commit point.

Michael McCandless added a comment - 23/May/08 09:39 AM
Attached patch. I plan to commit in a day or two.