C# Класс ElasticLinq.Request.Criteria.QueryCriteriaRewriter

Query DSL is slightly different from Filter DSL. In order to keep code paths simple we always build as if doing a filter. Here we rewrite the ICriteria designed for a filter into a query.
Показать файл Открыть проект

Открытые методы

Метод Описание
Compensate ( ICriteria criteria ) : ICriteria

Take an ICriteria for filtering and return an ICriteria with any necessary compensations for querying.

Приватные методы

Метод Описание
Rewrite ( ElasticLinq.Request.Criteria.AndCriteria and ) : ElasticLinq.Request.Criteria.BoolCriteria

Rewrite an AndCriteria as a BoolCriteria.

Rewrite ( ElasticLinq.Request.Criteria.NotCriteria not ) : ElasticLinq.Request.Criteria.BoolCriteria

Rewrite a NotCriteria as a BoolCriteria.

Rewrite ( ElasticLinq.Request.Criteria.OrCriteria or ) : ElasticLinq.Request.Criteria.BoolCriteria

Rewrite an OrCriteria as a BoolCriteria.

Rewrite ( ElasticLinq.Request.Criteria.ConstantCriteria constant ) : ICriteria

Rewrite a ConstantCriteria as a MatchAllCriteria that might be wrapped in a NotCriteria depending on whether it is true or false respectively.

Описание методов

Compensate() публичный статический Метод

Take an ICriteria for filtering and return an ICriteria with any necessary compensations for querying.
public static Compensate ( ICriteria criteria ) : ICriteria
criteria ICriteria built for filtering.
Результат ICriteria