Class GoogleCloudSearchCommitterConfig.MetadataMapping
java.lang.Object
com.norconex.committer.googlecloudsearch.GoogleCloudSearchCommitterConfig.MetadataMapping
- All Implemented Interfaces:
Serializable
- Enclosing class:
GoogleCloudSearchCommitterConfig
public static class GoogleCloudSearchCommitterConfig.MetadataMapping
extends Object
implements Serializable
Maps crawler metadata fields to Google Cloud Search predefined
metadata fields.
See Google reference:
https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/indexing.datasources.items#ItemMetadata
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanOptional fallback value whenfromFieldis missing or blank.Optional source metadata field in crawler documents.Mandatory target Google Cloud Search metadata field.inthashCode()booleanWhether to keepfromFieldin structured data.setDefaultValue(String defaultValue) Optional fallback value whenfromFieldis missing or blank.setFromField(String fromField) Optional source metadata field in crawler documents.setKeepFromField(boolean keepFromField) Whether to keepfromFieldin structured data.setToField(MetadataField toField) Mandatory target Google Cloud Search metadata field.toString()
-
Constructor Details
-
MetadataMapping
public MetadataMapping()
-
-
Method Details
-
getFromField
Optional source metadata field in crawler documents. -
getToField
Mandatory target Google Cloud Search metadata field. -
getDefaultValue
Optional fallback value whenfromFieldis missing or blank. -
isKeepFromField
public boolean isKeepFromField()Whether to keepfromFieldin structured data. -
setFromField
Optional source metadata field in crawler documents.- Returns:
this.
-
setToField
Mandatory target Google Cloud Search metadata field.- Returns:
this.
-
setDefaultValue
Optional fallback value whenfromFieldis missing or blank.- Returns:
this.
-
setKeepFromField
Whether to keepfromFieldin structured data.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-