Class ContentPropertySchemaField

  • public class ContentPropertySchemaField
    extends Object
    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.
    • Constructor Detail

      • 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)
        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 Detail

      • getJsonExpression

        public String getJsonExpression()
      • getFieldName

        public String getFieldName()
      • getOwningPlugin

        public String getOwningPlugin()
      • getOwningModule

        public String getOwningModule()
      • getAlias

        public String getAlias()
      • getUiSupport

        public com.atlassian.fugue.Option<com.atlassian.querylang.fields.UISupport> getUiSupport()
      • hashCode

        public int hashCode()
        hashCode in class Object