chriseldredge / Lucene.Net.Linq

LINQ provider to run native queries on a Lucene.Net index
Other
151 stars 66 forks source link

How To Get DocID ? #59

Closed temperory closed 10 years ago

chriseldredge commented 10 years ago

You can do this by implementing your own subclass of ReflectionDocumentMapper<T> as in this example.

Keep in mind Document IDs are only valid for the life of the current reader, so you probably don't want to use them for anything outside of the scope of methods you override in your DocumentMapper.