Class LikeDocumentDescriptor<TDocument>
An indexed or artificial document with which to find likeness
Inheritance
LikeDocumentDescriptor<TDocument>
Assembly: OpenSearch.Client.dll
Syntax
public class LikeDocumentDescriptor<TDocument> : DescriptorBase<LikeDocumentDescriptor<TDocument>, ILikeDocument>, IDescriptor, ILikeDocument where TDocument : class
Type Parameters
Name |
Description |
TDocument |
|
Constructors
|
Edit this page
View Source
LikeDocumentDescriptor()
Declaration
public LikeDocumentDescriptor()
Methods
|
Edit this page
View Source
Document(TDocument)
A document to find other documents like
Declaration
public LikeDocumentDescriptor<TDocument> Document(TDocument document)
Parameters
Type |
Name |
Description |
TDocument |
document |
|
Returns
|
Edit this page
View Source
Fields(Fields)
The fields to use for likeness
Declaration
public LikeDocumentDescriptor<TDocument> Fields(Fields fields)
Parameters
Type |
Name |
Description |
Fields |
fields |
|
Returns
|
Edit this page
View Source
Fields(Func<FieldsDescriptor<TDocument>, IPromise<Fields>>)
The fields to use for likeness
Declaration
public LikeDocumentDescriptor<TDocument> Fields(Func<FieldsDescriptor<TDocument>, IPromise<Fields>> fields)
Parameters
Returns
|
Edit this page
View Source
Id(Id)
The id of an indexed document to find other documents like
Declaration
public LikeDocumentDescriptor<TDocument> Id(Id id)
Parameters
Type |
Name |
Description |
Id |
id |
|
Returns
|
Edit this page
View Source
Index(IndexName)
The index of an indexed document to find other documents like
Declaration
public LikeDocumentDescriptor<TDocument> Index(IndexName index)
Parameters
Returns
|
Edit this page
View Source
PerFieldAnalyzer(Func<PerFieldAnalyzerDescriptor<TDocument>, IPromise<IPerFieldAnalyzer>>)
A different analyzer than the one defined for the target fields
Declaration
public LikeDocumentDescriptor<TDocument> PerFieldAnalyzer(Func<PerFieldAnalyzerDescriptor<TDocument>, IPromise<IPerFieldAnalyzer>> analyzerSelector)
Parameters
Returns
|
Edit this page
View Source
Routing(Routing)
The routing value of an indexed document to find other documents like
Declaration
public LikeDocumentDescriptor<TDocument> Routing(Routing routing)
Parameters
Type |
Name |
Description |
Routing |
routing |
|
Returns
Implements
Extension Methods