Method EmbeddedDocument
EmbeddedDocument<TField>(FieldDefinition<TDocument, IEnumerable<TField>>, SearchDefinition<TField>, SearchScoreDefinition<TDocument>)
Creates a search definition that performs a search for documents where
the specified query operator
is satisfied from a single element
of an array of embedded documents specified by path
.
public SearchDefinition<TDocument> EmbeddedDocument<TField>(FieldDefinition<TDocument, IEnumerable<TField>> path, SearchDefinition<TField> @operator, SearchScoreDefinition<TDocument> score = null)
Parameters
path
FieldDefinition<TDocument, IEnumerable<TField>>The indexed field to search.
operator
SearchDefinition<TField>The operator.
score
SearchScoreDefinition<TDocument>The score modifier.
Returns
- SearchDefinition<TDocument>
An embeddedDocument search definition.
Type Parameters
TField
The type of the field.
EmbeddedDocument<TField>(Expression<Func<TDocument, IEnumerable<TField>>>, SearchDefinition<TField>, SearchScoreDefinition<TDocument>)
Creates a search definition that performs a search for documents where
the specified query operator
is satisfied from a single element
of an array of embedded documents specified by path
.
public SearchDefinition<TDocument> EmbeddedDocument<TField>(Expression<Func<TDocument, IEnumerable<TField>>> path, SearchDefinition<TField> @operator, SearchScoreDefinition<TDocument> score = null)
Parameters
path
Expression<Func<TDocument, IEnumerable<TField>>>The indexed field to search.
operator
SearchDefinition<TField>The operator.
score
SearchScoreDefinition<TDocument>The score modifier.
Returns
- SearchDefinition<TDocument>
An embeddedDocument search definition.
Type Parameters
TField
The type of the field.