London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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: 7.19.2
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