public class StandardContentTarget extends ContentTarget implements com.exalead.util.Checkable, java.io.Serializable
DEFAULT_RANK_BOOST, forcedRank, indexField, rankBoost
Constructor and Description |
---|
StandardContentTarget() |
StandardContentTarget(StandardContentTarget o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this StandardContentTarget.
|
static StandardContentTarget |
fromString(java.lang.String s)
String representation of this StandardContentTarget.
|
java.util.List<DecreaseRankOnAnnotation> |
getDecreaseRankOnAnnotation()
List of DecreaseRankOnAnnotation
|
java.util.List<IncreaseRankOnAnnotation> |
getIncreaseRankOnAnnotation()
List of IncreaseRankOnAnnotation
|
int |
getMaxPrefixLength()
Maximum length of the extracted prefixes.
|
int |
getMaxSuffixLength()
Maximum length of the extracted suffixes.
|
int |
getPrefixesScore()
Score given to words' prefixes.
|
java.util.List<RankOnAnnotation> |
getRankOnAnnotation()
List of RankOnAnnotation
|
java.lang.String |
getRetrieveField()
The index field in which the content will be stored.
If null, the content will be put in 'indexField'. |
int |
getSubstringsScore()
Score given to extracted substrings.
|
int |
getSuffixesScore()
Score given to words' prefixes.
|
boolean |
isAddBreakBetweenChunks()
Enables the introduction of a break between document chunks by the indexer.
This forbids phrase matching across these chunks and has an impact on search when using double-quotes expressions or the 'NEXT' operator. For example, if a document has a "title" chunk containing "foo" and a "text" chunk containing "bar", and they are both remapped to the text field. |
boolean |
isAddStartEnd()
Enables the introduction of a word __start__ before chunk content and a word __end__ after chunk content.
Only valid if Chunk is mapped with semantic=true. This option is compatible with prefixContextName: produce contextName#__start__ and contextName#__end__) |
boolean |
isIndexExact()
Enables the indexing of the exact (non-normalized) form of each token.
|
boolean |
isIndexLowercase()
Enables the indexing of the lowercase (non-normalized) form of each token.
|
boolean |
isIndexNormalized()
Enables the indexing of the normalized form of the word.
|
boolean |
isIndexPrefixes()
Enables the indexing of all prefixes for each word with a score = prefixScore.
The prefix can be mapped to a specific type if you add 'prefix' in formIndexingConfig. |
boolean |
isIndexSeparators()
Enables the indexing of the index standard separators.
Indexed standard separators are: paragraph, sentence and page. Standard separators indexing is required for the SPLIT operator to work with these separators. |
boolean |
isIndexSubstrings()
Enables the indexing of all substrings for each word with a score = substringScore.
The suffix can be mapped to a specific kind if you add 'substring' in formIndexingConfig. |
boolean |
isIndexSuffixes()
Enables the indexing of all suffixes for each word with a score = suffixScore.
The suffix can be mapped to a specific kind if you add 'suffix' in formIndexingConfig. |
boolean |
isPrefixWithContext()
Enables prefixing of all words in inverted lists by 'contextName#'.
|
boolean |
isRetrievable()
Enables the content of the DocumentChunk to be directly stored in the index, so that it can be retrieved.
For numerical values, retrievability allows you to sort results by field. |
boolean |
isSearchable()
Marks the content of the DocumentChunk as indexed and searchable.
|
StandardContentTarget |
makeCopy()
Creates and returns a deep copy of this StandardContentTarget.
|
static StandardContentTarget |
readFrom(java.io.InputStream is)
Read this StandardContentTarget from an XML fragment.
|
void |
setAddBreakBetweenChunks(boolean addBreakBetweenChunks)
Enables the introduction of a break between document chunks by the indexer.
This forbids phrase matching across these chunks and has an impact on search when using double-quotes expressions or the 'NEXT' operator. For example, if a document has a "title" chunk containing "foo" and a "text" chunk containing "bar", and they are both remapped to the text field. |
void |
setAddStartEnd(boolean addStartEnd)
Enables the introduction of a word __start__ before chunk content and a word __end__ after chunk content.
Only valid if Chunk is mapped with semantic=true. This option is compatible with prefixContextName: produce contextName#__start__ and contextName#__end__) |
void |
setIndexExact(boolean indexExact)
Enables the indexing of the exact (non-normalized) form of each token.
|
void |
setIndexLowercase(boolean indexLowercase)
Enables the indexing of the lowercase (non-normalized) form of each token.
|
void |
setIndexNormalized(boolean indexNormalized)
Enables the indexing of the normalized form of the word.
|
void |
setIndexPrefixes(boolean indexPrefixes)
Enables the indexing of all prefixes for each word with a score = prefixScore.
The prefix can be mapped to a specific type if you add 'prefix' in formIndexingConfig. |
void |
setIndexSeparators(boolean indexSeparators)
Enables the indexing of the index standard separators.
Indexed standard separators are: paragraph, sentence and page. Standard separators indexing is required for the SPLIT operator to work with these separators. |
void |
setIndexSubstrings(boolean indexSubstrings)
Enables the indexing of all substrings for each word with a score = substringScore.
The suffix can be mapped to a specific kind if you add 'substring' in formIndexingConfig. |
void |
setIndexSuffixes(boolean indexSuffixes)
Enables the indexing of all suffixes for each word with a score = suffixScore.
The suffix can be mapped to a specific kind if you add 'suffix' in formIndexingConfig. |
void |
setMaxPrefixLength(int maxPrefixLength)
Maximum length of the extracted prefixes.
|
void |
setMaxSuffixLength(int maxSuffixLength)
Maximum length of the extracted suffixes.
|
void |
setPrefixesScore(int prefixesScore)
Score given to words' prefixes.
|
void |
setPrefixWithContext(boolean prefixWithContext)
Enables prefixing of all words in inverted lists by 'contextName#'.
|
void |
setRetrievable(boolean retrievable)
Enables the content of the DocumentChunk to be directly stored in the index, so that it can be retrieved.
For numerical values, retrievability allows you to sort results by field. |
void |
setRetrieveField(java.lang.String retrieveField)
The index field in which the content will be stored.
If null, the content will be put in 'indexField'. |
void |
setSearchable(boolean searchable)
Marks the content of the DocumentChunk as indexed and searchable.
|
void |
setSubstringsScore(int substringsScore)
Score given to extracted substrings.
|
void |
setSuffixesScore(int suffixesScore)
Score given to words' prefixes.
|
java.lang.String |
toString()
String representation of this StandardContentTarget.
|
StandardContentTarget |
withAddBreakBetweenChunks(boolean addBreakBetweenChunks) |
StandardContentTarget |
withAddBreakBetweenChunks(java.lang.Boolean addBreakBetweenChunks) |
StandardContentTarget |
withAddStartEnd(boolean addStartEnd) |
StandardContentTarget |
withAddStartEnd(java.lang.Boolean addStartEnd) |
StandardContentTarget |
withDecreaseRankOnAnnotation(java.util.Collection<DecreaseRankOnAnnotation> __values) |
StandardContentTarget |
withDecreaseRankOnAnnotation(DecreaseRankOnAnnotation... __values)
List of DecreaseRankOnAnnotation
|
StandardContentTarget |
withForcedRank(long forcedRank) |
StandardContentTarget |
withForcedRank(java.lang.Long forcedRank) |
StandardContentTarget |
withIncreaseRankOnAnnotation(java.util.Collection<IncreaseRankOnAnnotation> __values) |
StandardContentTarget |
withIncreaseRankOnAnnotation(IncreaseRankOnAnnotation... __values)
List of IncreaseRankOnAnnotation
|
StandardContentTarget |
withIndexExact(boolean indexExact) |
StandardContentTarget |
withIndexExact(java.lang.Boolean indexExact) |
StandardContentTarget |
withIndexField(java.lang.String indexField) |
StandardContentTarget |
withIndexLowercase(boolean indexLowercase) |
StandardContentTarget |
withIndexLowercase(java.lang.Boolean indexLowercase) |
StandardContentTarget |
withIndexNormalized(boolean indexNormalized) |
StandardContentTarget |
withIndexNormalized(java.lang.Boolean indexNormalized) |
StandardContentTarget |
withIndexPrefixes(boolean indexPrefixes) |
StandardContentTarget |
withIndexPrefixes(java.lang.Boolean indexPrefixes) |
StandardContentTarget |
withIndexSeparators(boolean indexSeparators) |
StandardContentTarget |
withIndexSeparators(java.lang.Boolean indexSeparators) |
StandardContentTarget |
withIndexSubstrings(boolean indexSubstrings) |
StandardContentTarget |
withIndexSubstrings(java.lang.Boolean indexSubstrings) |
StandardContentTarget |
withIndexSuffixes(boolean indexSuffixes) |
StandardContentTarget |
withIndexSuffixes(java.lang.Boolean indexSuffixes) |
StandardContentTarget |
withMaxPrefixLength(int maxPrefixLength) |
StandardContentTarget |
withMaxPrefixLength(java.lang.Integer maxPrefixLength) |
StandardContentTarget |
withMaxSuffixLength(int maxSuffixLength) |
StandardContentTarget |
withMaxSuffixLength(java.lang.Integer maxSuffixLength) |
StandardContentTarget |
withPrefixesScore(int prefixesScore) |
StandardContentTarget |
withPrefixesScore(java.lang.Integer prefixesScore) |
StandardContentTarget |
withPrefixWithContext(boolean prefixWithContext) |
StandardContentTarget |
withPrefixWithContext(java.lang.Boolean prefixWithContext) |
StandardContentTarget |
withRankBoost(long rankBoost) |
StandardContentTarget |
withRankBoost(java.lang.Long rankBoost) |
StandardContentTarget |
withRankOnAnnotation(java.util.Collection<RankOnAnnotation> __values) |
StandardContentTarget |
withRankOnAnnotation(RankOnAnnotation... __values)
List of RankOnAnnotation
|
StandardContentTarget |
withRetrievable(boolean retrievable) |
StandardContentTarget |
withRetrievable(java.lang.Boolean retrievable) |
StandardContentTarget |
withRetrieveField(java.lang.String retrieveField) |
StandardContentTarget |
withSearchable(boolean searchable) |
StandardContentTarget |
withSearchable(java.lang.Boolean searchable) |
StandardContentTarget |
withSubstringsScore(int substringsScore) |
StandardContentTarget |
withSubstringsScore(java.lang.Integer substringsScore) |
StandardContentTarget |
withSuffixesScore(int suffixesScore) |
StandardContentTarget |
withSuffixesScore(java.lang.Integer suffixesScore) |
void |
writeTo(java.io.OutputStream os)
Write this StandardContentTarget as an XML fragment
|
getForcedRank, getIndexField, getRankBoost, setForcedRank, setIndexField, setRankBoost
public java.util.List<RankOnAnnotation> rankOnAnnotation
public java.util.List<IncreaseRankOnAnnotation> increaseRankOnAnnotation
public java.util.List<DecreaseRankOnAnnotation> decreaseRankOnAnnotation
public boolean prefixWithContext
public static final boolean DEFAULT_PREFIX_WITH_CONTEXT
public boolean addStartEnd
public static final boolean DEFAULT_ADD_START_END
public boolean indexPrefixes
public static final boolean DEFAULT_INDEX_PREFIXES
public int prefixesScore
public static final int DEFAULT_PREFIXES_SCORE
public int maxPrefixLength
public static final int DEFAULT_MAX_PREFIX_LENGTH
public boolean indexSuffixes
public static final boolean DEFAULT_INDEX_SUFFIXES
public int suffixesScore
public static final int DEFAULT_SUFFIXES_SCORE
public int maxSuffixLength
public static final int DEFAULT_MAX_SUFFIX_LENGTH
public boolean indexSubstrings
public static final boolean DEFAULT_INDEX_SUBSTRINGS
public int substringsScore
public static final int DEFAULT_SUBSTRINGS_SCORE
public boolean searchable
public static final boolean DEFAULT_SEARCHABLE
public boolean retrievable
public static final boolean DEFAULT_RETRIEVABLE
public java.lang.String retrieveField
public boolean indexNormalized
public static final boolean DEFAULT_INDEX_NORMALIZED
public boolean indexLowercase
public static final boolean DEFAULT_INDEX_LOWERCASE
public boolean indexExact
public static final boolean DEFAULT_INDEX_EXACT
public boolean indexSeparators
public static final boolean DEFAULT_INDEX_SEPARATORS
public boolean addBreakBetweenChunks
public static final boolean DEFAULT_ADD_BREAK_BETWEEN_CHUNKS
public StandardContentTarget()
public StandardContentTarget(StandardContentTarget o)
public StandardContentTarget withIndexField(java.lang.String indexField)
withIndexField
in class ContentTarget
public StandardContentTarget withForcedRank(long forcedRank)
withForcedRank
in class ContentTarget
public StandardContentTarget withForcedRank(java.lang.Long forcedRank)
withForcedRank
in class ContentTarget
public StandardContentTarget withRankBoost(long rankBoost)
withRankBoost
in class ContentTarget
public StandardContentTarget withRankBoost(java.lang.Long rankBoost)
withRankBoost
in class ContentTarget
public java.util.List<RankOnAnnotation> getRankOnAnnotation()
public StandardContentTarget withRankOnAnnotation(RankOnAnnotation... __values)
public StandardContentTarget withRankOnAnnotation(java.util.Collection<RankOnAnnotation> __values)
public java.util.List<IncreaseRankOnAnnotation> getIncreaseRankOnAnnotation()
public StandardContentTarget withIncreaseRankOnAnnotation(IncreaseRankOnAnnotation... __values)
public StandardContentTarget withIncreaseRankOnAnnotation(java.util.Collection<IncreaseRankOnAnnotation> __values)
public java.util.List<DecreaseRankOnAnnotation> getDecreaseRankOnAnnotation()
public StandardContentTarget withDecreaseRankOnAnnotation(DecreaseRankOnAnnotation... __values)
public StandardContentTarget withDecreaseRankOnAnnotation(java.util.Collection<DecreaseRankOnAnnotation> __values)
public void setPrefixWithContext(boolean prefixWithContext)
public boolean isPrefixWithContext()
public StandardContentTarget withPrefixWithContext(boolean prefixWithContext)
public StandardContentTarget withPrefixWithContext(java.lang.Boolean prefixWithContext)
public void setAddStartEnd(boolean addStartEnd)
public boolean isAddStartEnd()
public StandardContentTarget withAddStartEnd(boolean addStartEnd)
public StandardContentTarget withAddStartEnd(java.lang.Boolean addStartEnd)
public void setIndexPrefixes(boolean indexPrefixes)
public boolean isIndexPrefixes()
public StandardContentTarget withIndexPrefixes(boolean indexPrefixes)
public StandardContentTarget withIndexPrefixes(java.lang.Boolean indexPrefixes)
public void setPrefixesScore(int prefixesScore)
public int getPrefixesScore()
public StandardContentTarget withPrefixesScore(int prefixesScore)
public StandardContentTarget withPrefixesScore(java.lang.Integer prefixesScore)
public void setMaxPrefixLength(int maxPrefixLength)
public int getMaxPrefixLength()
public StandardContentTarget withMaxPrefixLength(int maxPrefixLength)
public StandardContentTarget withMaxPrefixLength(java.lang.Integer maxPrefixLength)
public void setIndexSuffixes(boolean indexSuffixes)
public boolean isIndexSuffixes()
public StandardContentTarget withIndexSuffixes(boolean indexSuffixes)
public StandardContentTarget withIndexSuffixes(java.lang.Boolean indexSuffixes)
public void setSuffixesScore(int suffixesScore)
public int getSuffixesScore()
public StandardContentTarget withSuffixesScore(int suffixesScore)
public StandardContentTarget withSuffixesScore(java.lang.Integer suffixesScore)
public void setMaxSuffixLength(int maxSuffixLength)
public int getMaxSuffixLength()
public StandardContentTarget withMaxSuffixLength(int maxSuffixLength)
public StandardContentTarget withMaxSuffixLength(java.lang.Integer maxSuffixLength)
public void setIndexSubstrings(boolean indexSubstrings)
public boolean isIndexSubstrings()
public StandardContentTarget withIndexSubstrings(boolean indexSubstrings)
public StandardContentTarget withIndexSubstrings(java.lang.Boolean indexSubstrings)
public void setSubstringsScore(int substringsScore)
public int getSubstringsScore()
public StandardContentTarget withSubstringsScore(int substringsScore)
public StandardContentTarget withSubstringsScore(java.lang.Integer substringsScore)
public void setSearchable(boolean searchable)
public boolean isSearchable()
public StandardContentTarget withSearchable(boolean searchable)
public StandardContentTarget withSearchable(java.lang.Boolean searchable)
public void setRetrievable(boolean retrievable)
public boolean isRetrievable()
public StandardContentTarget withRetrievable(boolean retrievable)
public StandardContentTarget withRetrievable(java.lang.Boolean retrievable)
public void setRetrieveField(java.lang.String retrieveField)
public java.lang.String getRetrieveField()
public StandardContentTarget withRetrieveField(java.lang.String retrieveField)
public void setIndexNormalized(boolean indexNormalized)
public boolean isIndexNormalized()
public StandardContentTarget withIndexNormalized(boolean indexNormalized)
public StandardContentTarget withIndexNormalized(java.lang.Boolean indexNormalized)
public void setIndexLowercase(boolean indexLowercase)
public boolean isIndexLowercase()
public StandardContentTarget withIndexLowercase(boolean indexLowercase)
public StandardContentTarget withIndexLowercase(java.lang.Boolean indexLowercase)
public void setIndexExact(boolean indexExact)
public boolean isIndexExact()
public StandardContentTarget withIndexExact(boolean indexExact)
public StandardContentTarget withIndexExact(java.lang.Boolean indexExact)
public void setIndexSeparators(boolean indexSeparators)
public boolean isIndexSeparators()
public StandardContentTarget withIndexSeparators(boolean indexSeparators)
public StandardContentTarget withIndexSeparators(java.lang.Boolean indexSeparators)
public void setAddBreakBetweenChunks(boolean addBreakBetweenChunks)
"foo bar"
, foo NEXT bar
"foo bar"
nor foo NEXT bar
but will match the query foo AND bar
public boolean isAddBreakBetweenChunks()
"foo bar"
, foo NEXT bar
"foo bar"
nor foo NEXT bar
but will match the query foo AND bar
public StandardContentTarget withAddBreakBetweenChunks(boolean addBreakBetweenChunks)
public StandardContentTarget withAddBreakBetweenChunks(java.lang.Boolean addBreakBetweenChunks)
public StandardContentTarget makeCopy()
makeCopy
in class ContentTarget
public static StandardContentTarget 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 StandardContentTarget 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.