SaaS CMS has officially launched! Learn more now.

Class BaseSearchQueryBuilder

Inheritance
System.Object
BaseSearchQueryBuilder
Implements
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: Mediachase.Search.Providers.Solr
Assembly: Mediachase.Search.SolrSearchProvider.dll
Version: 11.8.3
Syntax
public class BaseSearchQueryBuilder : ISearchQueryBuilder

Constructors

BaseSearchQueryBuilder()

Declaration
public BaseSearchQueryBuilder()

Methods

AndQuery(ref ISolrQuery, ISolrQuery)

Adds the query.

Declaration
protected virtual void AndQuery(ref ISolrQuery query, ISolrQuery newQuery)
Parameters
Type Name Description
SolrNet.ISolrQuery query

The query.

SolrNet.ISolrQuery newQuery

The new query.

AndQuery(ref ISolrQuery, String, StringCollection)

Adds the query.

Declaration
protected virtual void AndQuery(ref ISolrQuery query, string fieldName, StringCollection filter)
Parameters
Type Name Description
SolrNet.ISolrQuery query

The query.

System.String fieldName

Name of the field.

System.Collections.Specialized.StringCollection filter

The filter.

AndQuery(ref ISolrQuery, String, DateTime)

Ands the query.

Declaration
protected virtual void AndQuery(ref ISolrQuery query, string fieldName, DateTime date)
Parameters
Type Name Description
SolrNet.ISolrQuery query

The query.

System.String fieldName

Name of the field.

System.DateTime date

The date.

AndQuery(ref ISolrQuery, String, DateTime, DateTime)

Ands the query.

Declaration
protected virtual void AndQuery(ref ISolrQuery query, string fieldName, DateTime startDate, DateTime endDate)
Parameters
Type Name Description
SolrNet.ISolrQuery query

The query.

System.String fieldName

Name of the field.

System.DateTime startDate

The start date.

System.DateTime endDate

The end date.

BuildQuery(ISearchCriteria)

Declaration
public virtual object BuildQuery(ISearchCriteria criteria)
Parameters
Type Name Description
ISearchCriteria criteria
Returns
Type Description
System.Object

BuildSolrQuery(String, DateTime, DateTime)

Build Solr query with date range.

Declaration
protected AbstractSolrQuery BuildSolrQuery(string fieldName, DateTime startDate, DateTime endDate)
Parameters
Type Name Description
System.String fieldName

Name of the field.

System.DateTime startDate

The start date.

System.DateTime endDate

The end date.

Returns
Type Description
SolrNet.AbstractSolrQuery

BuildSolrQuery(String, Object)

Build Solr query.

Declaration
protected AbstractSolrQuery BuildSolrQuery(string fieldName, object value)
Parameters
Type Name Description
System.String fieldName

Name of the field.

System.Object value

The value object.

Returns
Type Description
SolrNet.AbstractSolrQuery

Implements