public class CategoryContentTarget extends ContentTarget implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
appendContextNameToRoot |
boolean |
categoryAppend |
java.lang.String |
categoryRoot |
boolean |
cleanupContent |
static boolean |
DEFAULT_APPEND_CONTEXT_NAME_TO_ROOT |
static boolean |
DEFAULT_CATEGORY_APPEND |
static boolean |
DEFAULT_CLEANUP_CONTENT |
static boolean |
DEFAULT_DETECT_TITLE |
static java.lang.String |
DEFAULT_FORM |
static boolean |
DEFAULT_RETRIEVABLE |
boolean |
detectTitle |
java.lang.String |
form |
boolean |
retrievable |
DEFAULT_RANK_BOOST, forcedRank, indexField, rankBoost
Constructor and Description |
---|
CategoryContentTarget() |
CategoryContentTarget(CategoryContentTarget o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this CategoryContentTarget.
|
static CategoryContentTarget |
fromString(java.lang.String s)
String representation of this CategoryContentTarget.
|
java.lang.String |
getCategoryRoot()
Builds the category path.
|
java.lang.String |
getForm()
The form of the word to be used to build the category path.
enum(exact,normalized) |
boolean |
isAppendContextNameToRoot()
Appends the context name between the root and the value.
|
boolean |
isCategoryAppend()
Appends the textual content of the DocumentChunk to the category root.
If false, only the category root will be used. |
boolean |
isCleanupContent()
If true:
Removes trailing and leading unicode-spaces.
Replaces all sequences of unicode-space characters by a single 'space' character.
Does not map to the category in append mode if the DocumentChunk does not contain at least one unicode alpha-numerical character.
|
boolean |
isDetectTitle()
Detect words set after # in path and use them as title
|
boolean |
isRetrievable()
Stores the category path, which enables display and navigation by category path.
If false, we only index the SemanticAnnotation (Advanced usage - langdate hacks). |
CategoryContentTarget |
makeCopy()
Creates and returns a deep copy of this CategoryContentTarget.
|
static CategoryContentTarget |
readFrom(java.io.InputStream is)
Read this CategoryContentTarget from an XML fragment.
|
void |
setAppendContextNameToRoot(boolean appendContextNameToRoot)
Appends the context name between the root and the value.
|
void |
setCategoryAppend(boolean categoryAppend)
Appends the textual content of the DocumentChunk to the category root.
If false, only the category root will be used. |
void |
setCategoryRoot(java.lang.String categoryRoot)
Builds the category path.
|
void |
setCleanupContent(boolean cleanupContent)
If true:
Removes trailing and leading unicode-spaces.
Replaces all sequences of unicode-space characters by a single 'space' character.
Does not map to the category in append mode if the DocumentChunk does not contain at least one unicode alpha-numerical character.
|
void |
setDetectTitle(boolean detectTitle)
Detect words set after # in path and use them as title
|
void |
setForm(java.lang.String form)
The form of the word to be used to build the category path.
enum(exact,normalized) |
void |
setRetrievable(boolean retrievable)
Stores the category path, which enables display and navigation by category path.
If false, we only index the SemanticAnnotation (Advanced usage - langdate hacks). |
java.lang.String |
toString()
String representation of this CategoryContentTarget.
|
CategoryContentTarget |
withAppendContextNameToRoot(boolean appendContextNameToRoot) |
CategoryContentTarget |
withAppendContextNameToRoot(java.lang.Boolean appendContextNameToRoot) |
CategoryContentTarget |
withCategoryAppend(boolean categoryAppend) |
CategoryContentTarget |
withCategoryAppend(java.lang.Boolean categoryAppend) |
CategoryContentTarget |
withCategoryRoot(java.lang.String categoryRoot) |
CategoryContentTarget |
withCleanupContent(boolean cleanupContent) |
CategoryContentTarget |
withCleanupContent(java.lang.Boolean cleanupContent) |
CategoryContentTarget |
withDetectTitle(boolean detectTitle) |
CategoryContentTarget |
withDetectTitle(java.lang.Boolean detectTitle) |
CategoryContentTarget |
withForcedRank(long forcedRank) |
CategoryContentTarget |
withForcedRank(java.lang.Long forcedRank) |
CategoryContentTarget |
withForm(java.lang.String form) |
CategoryContentTarget |
withIndexField(java.lang.String indexField) |
CategoryContentTarget |
withRankBoost(long rankBoost) |
CategoryContentTarget |
withRankBoost(java.lang.Long rankBoost) |
CategoryContentTarget |
withRetrievable(boolean retrievable) |
CategoryContentTarget |
withRetrievable(java.lang.Boolean retrievable) |
void |
writeTo(java.io.OutputStream os)
Write this CategoryContentTarget as an XML fragment
|
getForcedRank, getIndexField, getRankBoost, setForcedRank, setIndexField, setRankBoost
public java.lang.String categoryRoot
public boolean categoryAppend
public static final boolean DEFAULT_CATEGORY_APPEND
public boolean appendContextNameToRoot
public static final boolean DEFAULT_APPEND_CONTEXT_NAME_TO_ROOT
public java.lang.String form
public static final java.lang.String DEFAULT_FORM
public boolean retrievable
public static final boolean DEFAULT_RETRIEVABLE
public boolean cleanupContent
public static final boolean DEFAULT_CLEANUP_CONTENT
public boolean detectTitle
public static final boolean DEFAULT_DETECT_TITLE
public CategoryContentTarget()
public CategoryContentTarget(CategoryContentTarget o)
public CategoryContentTarget withIndexField(java.lang.String indexField)
withIndexField
in class ContentTarget
public CategoryContentTarget withForcedRank(long forcedRank)
withForcedRank
in class ContentTarget
public CategoryContentTarget withForcedRank(java.lang.Long forcedRank)
withForcedRank
in class ContentTarget
public CategoryContentTarget withRankBoost(long rankBoost)
withRankBoost
in class ContentTarget
public CategoryContentTarget withRankBoost(java.lang.Long rankBoost)
withRankBoost
in class ContentTarget
public void setCategoryRoot(java.lang.String categoryRoot)
public java.lang.String getCategoryRoot()
public CategoryContentTarget withCategoryRoot(java.lang.String categoryRoot)
public void setCategoryAppend(boolean categoryAppend)
public boolean isCategoryAppend()
public CategoryContentTarget withCategoryAppend(boolean categoryAppend)
public CategoryContentTarget withCategoryAppend(java.lang.Boolean categoryAppend)
public void setAppendContextNameToRoot(boolean appendContextNameToRoot)
public boolean isAppendContextNameToRoot()
public CategoryContentTarget withAppendContextNameToRoot(boolean appendContextNameToRoot)
public CategoryContentTarget withAppendContextNameToRoot(java.lang.Boolean appendContextNameToRoot)
public void setForm(java.lang.String form)
enum(exact,normalized)
public java.lang.String getForm()
enum(exact,normalized)
public CategoryContentTarget withForm(java.lang.String form)
public void setRetrievable(boolean retrievable)
public boolean isRetrievable()
public CategoryContentTarget withRetrievable(boolean retrievable)
public CategoryContentTarget withRetrievable(java.lang.Boolean retrievable)
public void setCleanupContent(boolean cleanupContent)
public boolean isCleanupContent()
public CategoryContentTarget withCleanupContent(boolean cleanupContent)
public CategoryContentTarget withCleanupContent(java.lang.Boolean cleanupContent)
public void setDetectTitle(boolean detectTitle)
public boolean isDetectTitle()
public CategoryContentTarget withDetectTitle(boolean detectTitle)
public CategoryContentTarget withDetectTitle(java.lang.Boolean detectTitle)
public CategoryContentTarget makeCopy()
makeCopy
in class ContentTarget
public static CategoryContentTarget readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class ContentTarget
javax.xml.bind.JAXBException
java.io.IOException
public static CategoryContentTarget fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class ContentTarget
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class ContentTarget
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.