Skip to content

Parse queries without LINQ

Compare
Choose a tag to compare
@chriseldredge chriseldredge released this 27 Oct 19:57
· 28 commits to master since this release

Release Notes

This version provides two new methods on LuceneDataProvider:

  • CreateQueryParser<T>() creates a Lucene QueryParser that knows how to create boolean queries with correct conversion and encoding of query values
  • LuceneVersion and GetIndexedPropertyNames<T>() provide additional metadata about the binary format version of the index and which fields are indexed for a given document.

These new capabilities make it easier for your application to accept advanced queries as expressed as simple strings so queries can come from users or other code that isn't using LINQ to build them.

This version also fixes a bug when sorting results by a UnaryExpression as in the case of a property backed by a nullable value type.

Binaries

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

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