chriseldredge / Lucene.Net.Linq

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

Surface merge policy and related settings #74

Closed chriseldredge closed 9 years ago

chriseldredge commented 9 years ago

The default configuration of the underlying IndexWriter is difficult to customize when allowing Lucene.Net.Linq to instantiate IndexWriter upon first usage. This leads to some undesired performance results with regards to how and when index segments are merged. For clients that want better control of these policies, Lucene.Net.Linq should make it easier to select a merge policy implementation and related settings like MergeFactor, MinMergeMB, MaxMergeMB, etc.

This would allow clients to prevent too many deleted documents from accumulating.

See #72 for origin of this issue.

chriseldredge commented 9 years ago

This is currently possible by subclassing LuceneDataProvider and overriding GetIndexWriter.

Perhaps adding some more properties to LuceneDataProviderSettings would be a good approach.

chriseldredge commented 9 years ago

Commit 67b93d96e4818e7401eb643e59088b3ca6f40701

chriseldredge commented 9 years ago

Released in https://github.com/themotleyfool/Lucene.Net.Linq/releases/tag/v3.5.0