Section navigation

Public namespace Rowles.LeanCorpus.Linq

Classes

Public class LeanQueryProvider<TDocument>

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 class LeanQueryable<TDocument>

LINQ queryable over a LeanCorpus index. Construct directly or obtain via the source-generator-emitted AsQueryable(IndexSearcher) method.

Public class LinqExtensions

Extension methods that add LINQ queryable support to LeanDocumentMap<TDocument> and related types.

Structs

Public struct LeanExpressionVisitor

Translates a LINQ Expression tree — typically an Expression<Func<TDocument, bool>> — into a LeanCorpus Query tree suitable for Search(Query, int).

Interfaces

Public interface IFieldDescriptor

Non-generic field metadata consumed by the expression-tree visitor when translating LINQ member accesses into Query objects. Both LeanField<TDocument, TValue> and LeanFieldBinding<TDocument> implement this interface, so the resolver delegate can return either.