Skip to content

Query Statistics and more

Choose a tag to compare

@chriseldredge chriseldredge released this 20 Jun 19:01
· 43 commits to master since this release

New Features

  • #23 Capture statistics on query execution
  • #65 Fuzzy Match extension

Query Statistics

It is now possible to get the full count of hits when using Skip() and Take() to paginate:

LuceneQueryStatistics stats = null;

provider
  .AsQueryable<SampleDocument>()
  .CaptureStatistics(s => { stats = s; })
  .Where(d => d.SearchText == "foo")
  .Skip(20)
  .Take(20)
  .ToList();

See LuceneQueryStatistics.cs for available metadata.

Binaries

NuGet package at https://www.nuget.org/packages/Lucene.Net.Linq/3.3.0

PM> Install-Package Lucene.Net.Linq -Version 3.3.0