Table of Contents

Interface INestedQuery

Namespace
Examine.Search
Assembly
Examine.Core.dll

Represents a nested query

public interface INestedQuery

Methods

Field(string, IExamineValue)

Query on the specified field

INestedBooleanOperation Field(string fieldName, IExamineValue fieldValue)

Parameters

fieldName string

Name of the field.

fieldValue IExamineValue

The field value.

Returns

INestedBooleanOperation

Field(string, string)

Query on the specified field

INestedBooleanOperation Field(string fieldName, string fieldValue)

Parameters

fieldName string

Name of the field.

fieldValue string

The field value.

Returns

INestedBooleanOperation

Field<T>(string, T)

Query on the specified field for a struct value which will try to be auto converted with the correct query

INestedBooleanOperation Field<T>(string fieldName, T fieldValue) where T : struct

Parameters

fieldName string
fieldValue T

Returns

INestedBooleanOperation

Type Parameters

T

GroupedAnd(IEnumerable<string>, params IExamineValue[])

Queries multiple fields with each being an And boolean operation

INestedBooleanOperation GroupedAnd(IEnumerable<string> fields, params IExamineValue[] query)

Parameters

fields IEnumerable<string>

The fields.

query IExamineValue[]

The query.

Returns

INestedBooleanOperation

GroupedAnd(IEnumerable<string>, params string[])

Queries multiple fields with each being an And boolean operation

INestedBooleanOperation GroupedAnd(IEnumerable<string> fields, params string[] query)

Parameters

fields IEnumerable<string>

The fields.

query string[]

The query.

Returns

INestedBooleanOperation

GroupedNot(IEnumerable<string>, params IExamineValue[])

Queries multiple fields with each being an Not boolean operation

INestedBooleanOperation GroupedNot(IEnumerable<string> fields, params IExamineValue[] query)

Parameters

fields IEnumerable<string>

The fields.

query IExamineValue[]

The query.

Returns

INestedBooleanOperation

GroupedNot(IEnumerable<string>, params string[])

Queries multiple fields with each being an Not boolean operation

INestedBooleanOperation GroupedNot(IEnumerable<string> fields, params string[] query)

Parameters

fields IEnumerable<string>

The fields.

query string[]

The query.

Returns

INestedBooleanOperation

GroupedOr(IEnumerable<string>, params IExamineValue[])

Queries multiple fields with each being an Or boolean operation

INestedBooleanOperation GroupedOr(IEnumerable<string> fields, params IExamineValue[] query)

Parameters

fields IEnumerable<string>

The fields.

query IExamineValue[]

The query.

Returns

INestedBooleanOperation

GroupedOr(IEnumerable<string>, params string[])

Queries multiple fields with each being an Or boolean operation

INestedBooleanOperation GroupedOr(IEnumerable<string> fields, params string[] query)

Parameters

fields IEnumerable<string>

The fields.

query string[]

The query.

Returns

INestedBooleanOperation

ManagedQuery(string, string[]?)

The index will determine the most appropriate way to search given the query and the fields provided

INestedBooleanOperation ManagedQuery(string query, string[]? fields = null)

Parameters

query string
fields string[]

Returns

INestedBooleanOperation

RangeQuery<T>(string[], T?, T?, bool, bool)

Matches items as defined by the IIndexFieldValueType used for the fields specified. If a type is not defined for a field name, or the type does not implement IIndexRangeValueType for the types of min and max, nothing will be added

INestedBooleanOperation RangeQuery<T>(string[] fields, T? min, T? max, bool minInclusive = true, bool maxInclusive = true) where T : struct

Parameters

fields string[]
min T?
max T?
minInclusive bool
maxInclusive bool

Returns

INestedBooleanOperation

Type Parameters

T