Class ContentPropertySchemaField
java.lang.Object
com.atlassian.confluence.plugins.contentproperty.index.schema.ContentPropertySchemaField
Contains information how part of content property value (arbitrary JSON document) should be extracted into
a cql field. BY default, eac extracted field can be access using a
ContentPropertyFieldHandler
. If
an alias is defined for the field, then a FieldHandler
for the alias is also registered.- Since:
- 5.7
-
Constructor Summary
ConstructorDescriptionContentPropertySchemaField
(String jsonExpression, SchemaFieldType fieldType, String fieldName, String owningPlugin, String owningModule, String alias, com.atlassian.fugue.Option<com.atlassian.querylang.fields.UISupport> uiSupport) -
Method Summary
-
Constructor Details
-
ContentPropertySchemaField
public ContentPropertySchemaField(String jsonExpression, SchemaFieldType fieldType, String fieldName, String owningPlugin, String owningModule, String alias, com.atlassian.fugue.Option<com.atlassian.querylang.fields.UISupport> uiSupport) - Parameters:
jsonExpression
- Expression uses the dot notation to access the fields of an embedded document. To do so, concatenate the embedded document name with the dot (.) and the field name:
e.g. for JSON document{ "key-1" : { "nested-1" : "apple", "nested-2" : "pear" }, "key-2" : [1, 2, 3] }
"key-1.nested-1"
expression would evaluate into a single String value "apple""key-2"
into an int array [1, 2, 3]"key-1"
into a String array ["apple", "pear"]
fieldType
- Supported index field type.fieldName
- Name of the field inside Lucene document.
-
-
Method Details
-
getJsonExpression
-
getFieldType
-
getFieldName
-
getOwningPlugin
-
getOwningModule
-
getAlias
-
getUiSupport
public com.atlassian.fugue.Option<com.atlassian.querylang.fields.UISupport> getUiSupport() -
toString
-
hashCode
public int hashCode() -
equals
-