Section navigation

Public classSealed LeanQueryProvider<TDocument>

Namespace
Rowles.LeanCorpus.Linq
Assembly
Rowles.LeanCorpus.dll

Executes LINQ expression trees against a LeanCorpus IndexSearcher. Translates Where predicates into Query objects via LeanExpressionVisitor, executes searches, and materialises results through FromStoredDocument(StoredDocument).

public sealed class LeanQueryProvider<TDocument> : IQueryProvider

Type Parameters

TDocument

The mapped document model type.

Inheritance
LeanQueryProvider<TDocument>
Implements

Public constructor LeanQueryProvider(IndexSearcher, LeanDocumentMap<TDocument>, Func<string, IFieldDescriptor?>?, SearchOptions?)

Initialises a new LeanQueryProvider<TDocument>.

Public method CreateQuery(Expression)

Constructs an IQueryable object that can evaluate the query represented by a specified expression tree.

Public method CreateQuery<TElement>(Expression)

Constructs an IQueryable<T> object that can evaluate the query represented by a specified expression tree.

Public method Execute(Expression)

Executes the query represented by a specified expression tree.

Public method Execute<TResult>(Expression)

Executes the strongly-typed query represented by a specified expression tree.