Class SearchIndexerIndexProjectionSelector
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerIndexProjectionSelector
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchIndexerIndexProjectionSelector>
public final class SearchIndexerIndexProjectionSelector
extends Object
implements com.azure.json.JsonSerializable<SearchIndexerIndexProjectionSelector>
Description for what data to store in the designated search index.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexerIndexProjectionSelector(String targetIndexName, String parentKeyFieldName, String sourceContext, List<InputFieldMappingEntry> mappings) Creates an instance of SearchIndexerIndexProjectionSelector class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchIndexerIndexProjectionSelector from the JsonReader.Get the mappings property: Mappings for the projection, or which source should be mapped to which field in the target index.Get the parentKeyFieldName property: Name of the field in the search index to map the parent document's key value to.Get the sourceContext property: Source context for the projections.Get the targetIndexName property: Name of the search index to project to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SearchIndexerIndexProjectionSelector
public SearchIndexerIndexProjectionSelector(String targetIndexName, String parentKeyFieldName, String sourceContext, List<InputFieldMappingEntry> mappings) Creates an instance of SearchIndexerIndexProjectionSelector class.- Parameters:
targetIndexName- the targetIndexName value to set.parentKeyFieldName- the parentKeyFieldName value to set.sourceContext- the sourceContext value to set.mappings- the mappings value to set.
-
-
Method Details
-
getTargetIndexName
Get the targetIndexName property: Name of the search index to project to. Must have a key field with the 'keyword' analyzer set.- Returns:
- the targetIndexName value.
-
getParentKeyFieldName
Get the parentKeyFieldName property: Name of the field in the search index to map the parent document's key value to. Must be a string field that is filterable and not the key field.- Returns:
- the parentKeyFieldName value.
-
getSourceContext
Get the sourceContext property: Source context for the projections. Represents the cardinality at which the document will be split into multiple sub documents.- Returns:
- the sourceContext value.
-
getMappings
Get the mappings property: Mappings for the projection, or which source should be mapped to which field in the target index.- Returns:
- the mappings value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchIndexerIndexProjectionSelector>- Throws:
IOException
-
fromJson
public static SearchIndexerIndexProjectionSelector fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SearchIndexerIndexProjectionSelector from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchIndexerIndexProjectionSelector if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SearchIndexerIndexProjectionSelector.
-