Class ContentQuery<T>

Representing a query to the Lucene Indexing Service for a content item.

Inheritance
System.Object
ContentQuery<T>
Implements
EPiServer.Search.Queries.IQueryExpression
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Search.Queries.Lucene
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class ContentQuery<T> : IQueryExpression where T : IContentData
Type Parameters
Name Description
T

The type of the content to search for.

Examples

Example of how you could search for pages.

Constructors

ContentQuery()

Initializes a new instance of the ContentQuery<T> class.

Declaration
public ContentQuery()

Methods

GetQueryExpression()

Gets the query expression for this ContentQuery<T> instance.

Declaration
public virtual string GetQueryExpression()
Returns
Type Description
System.String

A query expression string.

Implements

EPiServer.Search.Queries.IQueryExpression

Extension Methods