com.atlassian.confluence.plugins.contentproperty.index.extractor
Interface ContentPropertyExtractionManager
- All Known Implementing Classes:
- ContentPropertyExtractionManagerImpl
public interface ContentPropertyExtractionManager
Encapsulates the logic of extracting Lucene fields from a given JSON, based on content property schema.
- Since:
- 5.7
extract
Iterable<org.apache.lucene.index.IndexableField> extract(JsonString json,
Iterable<ContentPropertySchemaField> schemaFields)
- Extracts JSON document fragments and transforms them into Lucene fields with user - defined field types. If for
some reason type can't be allied (e.g. JSON value is a string, and user defined type was a date), field will not
be included in the result.
- Parameters:
json
- JSON document, which fragments will be used to populate Lucene fieldsschemaFields
- all schema fields which should be extracted from a given JSON document
- Returns:
- all fields which could be extracted from a given JSON
Copyright © 2003–2015 Atlassian. All rights reserved.