Click or drag to resize

IUserSessionLuceneQueryCountT, TIndex Method


Queries the content store using Lucene query syntax and returns the count of results.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
long LuceneQueryCount<T, TIndex>(
	string luceneQueryExpression
)
where TIndex : new(), AbstractIndexCreationTask

Parameters

luceneQueryExpression  String
The Lucene query

Type Parameters

T
Type of objects to retrieve
TIndex
Type of index to use. Index types can be found in the Ingeniux.CMS.RavenDB.Indexes namespace

Return Value

Int64
Count of documents that match the query
See Also