
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
TDocumentThe mapped document model type.
- Inheritance
-
LeanQueryProvider<TDocument>
- Implements
LeanQueryProvider(IndexSearcher, LeanDocumentMap<TDocument>, Func<string, IFieldDescriptor?>?, SearchOptions?)
Initialises a new LeanQueryProvider<TDocument>.
CreateQuery(Expression)
Constructs an IQueryable object that can evaluate the query represented by a specified expression tree.
CreateQuery<TElement>(Expression)
Constructs an IQueryable<T> object that can evaluate the query represented by a specified expression tree.
Execute(Expression)
Executes the query represented by a specified expression tree.
Execute<TResult>(Expression)
Executes the strongly-typed query represented by a specified expression tree.