com.atlassian.jira.index
Class IndexDocumentConfiguration
java.lang.Object
com.atlassian.jira.index.IndexDocumentConfiguration
@ExperimentalApi
public class IndexDocumentConfiguration
- extends Object
Document that configures indexing of entityProperties it reads to description in format of:
<key entity-key="com.atlassian.jira.thing">
<extract path="foo.bar" type="string">
<!--
"path" tells you what part of the json to extract.
"type" could be "number", "string", "text", "date" and tells you how to analyse it
-->
</<extract>
</key>
<key prefix="com.atlassian.jira.rank">
<extract...><extract/>
</key>
- Since:
- v6.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEX_DOCUMENT_CONFIGURATION_ROOT
public static final String INDEX_DOCUMENT_CONFIGURATION_ROOT
- See Also:
- Constant Field Values
INDEX_DOCUMENT_KEY_ELEMENT
public static final String INDEX_DOCUMENT_KEY_ELEMENT
- See Also:
- Constant Field Values
INDEX_DOCUMENT_ENTITY_KEY_ATTRIBUTE
public static final String INDEX_DOCUMENT_ENTITY_KEY_ATTRIBUTE
- See Also:
- Constant Field Values
INDEX_DOCUMENT_KEY_PROPERTY_KEY_ATTRIBUTE
public static final String INDEX_DOCUMENT_KEY_PROPERTY_KEY_ATTRIBUTE
- See Also:
- Constant Field Values
INDEX_DOCUMENT_EXTRACT_ELEMENT
public static final String INDEX_DOCUMENT_EXTRACT_ELEMENT
- See Also:
- Constant Field Values
INDEX_DOCUMENT_EXTRACT_PATH_ATTRIBUTE
public static final String INDEX_DOCUMENT_EXTRACT_PATH_ATTRIBUTE
- See Also:
- Constant Field Values
INDEX_DOCUMENT_EXTRACT_TYPE_ATTRIBUTE
public static final String INDEX_DOCUMENT_EXTRACT_TYPE_ATTRIBUTE
- See Also:
- Constant Field Values
IndexDocumentConfiguration
public IndexDocumentConfiguration(String entityKey,
List<IndexDocumentConfiguration.KeyConfiguration> keyConfigurations)
fromXML
public static IndexDocumentConfiguration fromXML(String element)
throws IndexDocumentConfiguration.IndexDocumentConfigurationParseException
- Throws:
IndexDocumentConfiguration.IndexDocumentConfigurationParseException
fromXML
public static IndexDocumentConfiguration fromXML(org.dom4j.Element element)
throws IndexDocumentConfiguration.IndexDocumentConfigurationParseException
- Throws:
IndexDocumentConfiguration.IndexDocumentConfigurationParseException
getKeyConfigurations
public List<IndexDocumentConfiguration.KeyConfiguration> getKeyConfigurations()
- List of key that are defined to be scanned in this configuration
- Returns:
- list of key configurations
getEntityKey
public String getEntityKey()
- Returns:
- name of entity associated with this configuration
toXML
public String toXML()
Copyright © 2002-2014 Atlassian. All Rights Reserved.