Class JsonProcessorDescriptor<T>
Converts a JSON string into a structured JSON object.
Inheritance
JsonProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class JsonProcessorDescriptor<T> : ProcessorDescriptorBase<JsonProcessorDescriptor<T>, IJsonProcessor>, IDescriptor, IJsonProcessor, IProcessor where T : class
Type Parameters
Properties
|
Edit this page
View Source
Name
Declaration
protected override string Name { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
AddToRoot(bool?)
Flag that forces the serialized json to be injected into the top level of the document.
TargetField must not be set when this option is chosen.
Declaration
public JsonProcessorDescriptor<T> AddToRoot(bool? addToRoot = true)
Parameters
Type |
Name |
Description |
bool? |
addToRoot |
|
Returns
|
Edit this page
View Source
Field(Field)
Field holding json as a string
Declaration
public JsonProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
Field holding json as a string
Declaration
public JsonProcessorDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
TargetField(Field)
The field to insert the converted structured object into
Declaration
public JsonProcessorDescriptor<T> TargetField(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
TargetField<TValue>(Expression<Func<T, TValue>>)
The field to insert the converted structured object into
Declaration
public JsonProcessorDescriptor<T> TargetField<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
Implements
Extension Methods