public class CustomContentTarget extends ContentTarget implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
addBreakBetweenChunks |
static boolean |
DEFAULT_ADD_BREAK_BETWEEN_CHUNKS |
static boolean |
DEFAULT_RETRIEVABLE |
static boolean |
DEFAULT_SEARCHABLE |
int |
indexKind |
boolean |
retrievable |
java.lang.String |
retrieveField |
boolean |
searchable |
DEFAULT_RANK_BOOST, forcedRank, indexField, rankBoost
Constructor and Description |
---|
CustomContentTarget() |
CustomContentTarget(CustomContentTarget o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this CustomContentTarget.
|
static CustomContentTarget |
fromString(java.lang.String s)
String representation of this CustomContentTarget.
|
int |
getIndexKind()
Index 'Kind' to use for indexing content.
|
java.lang.String |
getRetrieveField()
The index field in which the content will be stored.
If null, the content will be put in 'indexField'. |
boolean |
isAddBreakBetweenChunks()
If true, the indexer introduces a break between document chunks.
This forbids phrase matching across these chunks and has an impact on search when using double-quotes expressions or the 'NEXT' operator. |
boolean |
isRetrievable()
Stores the content of the DocumentChunk directly in the index, so that it can be retrieved.
For numerical values, retrievability enables to sort results by field. |
boolean |
isSearchable()
If true, the content of the DocumentChunk will be indexed and searchable.
|
CustomContentTarget |
makeCopy()
Creates and returns a deep copy of this CustomContentTarget.
|
static CustomContentTarget |
readFrom(java.io.InputStream is)
Read this CustomContentTarget from an XML fragment.
|
void |
setAddBreakBetweenChunks(boolean addBreakBetweenChunks)
If true, the indexer introduces a break between document chunks.
This forbids phrase matching across these chunks and has an impact on search when using double-quotes expressions or the 'NEXT' operator. |
void |
setIndexKind(int indexKind)
Index 'Kind' to use for indexing content.
|
void |
setRetrievable(boolean retrievable)
Stores the content of the DocumentChunk directly in the index, so that it can be retrieved.
For numerical values, retrievability enables 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)
If true, the content of the DocumentChunk will be indexed and searchable.
|
java.lang.String |
toString()
String representation of this CustomContentTarget.
|
CustomContentTarget |
withAddBreakBetweenChunks(boolean addBreakBetweenChunks) |
CustomContentTarget |
withAddBreakBetweenChunks(java.lang.Boolean addBreakBetweenChunks) |
CustomContentTarget |
withForcedRank(long forcedRank) |
CustomContentTarget |
withForcedRank(java.lang.Long forcedRank) |
CustomContentTarget |
withIndexField(java.lang.String indexField) |
CustomContentTarget |
withIndexKind(int indexKind) |
CustomContentTarget |
withIndexKind(java.lang.Integer indexKind) |
CustomContentTarget |
withRankBoost(long rankBoost) |
CustomContentTarget |
withRankBoost(java.lang.Long rankBoost) |
CustomContentTarget |
withRetrievable(boolean retrievable) |
CustomContentTarget |
withRetrievable(java.lang.Boolean retrievable) |
CustomContentTarget |
withRetrieveField(java.lang.String retrieveField) |
CustomContentTarget |
withSearchable(boolean searchable) |
CustomContentTarget |
withSearchable(java.lang.Boolean searchable) |
void |
writeTo(java.io.OutputStream os)
Write this CustomContentTarget as an XML fragment
|
getForcedRank, getIndexField, getRankBoost, setForcedRank, setIndexField, setRankBoost
public boolean searchable
public static final boolean DEFAULT_SEARCHABLE
public java.lang.String retrieveField
public boolean retrievable
public static final boolean DEFAULT_RETRIEVABLE
public int indexKind
public boolean addBreakBetweenChunks
public static final boolean DEFAULT_ADD_BREAK_BETWEEN_CHUNKS
public CustomContentTarget()
public CustomContentTarget(CustomContentTarget o)
public CustomContentTarget withIndexField(java.lang.String indexField)
withIndexField
in class ContentTarget
public CustomContentTarget withForcedRank(long forcedRank)
withForcedRank
in class ContentTarget
public CustomContentTarget withForcedRank(java.lang.Long forcedRank)
withForcedRank
in class ContentTarget
public CustomContentTarget withRankBoost(long rankBoost)
withRankBoost
in class ContentTarget
public CustomContentTarget withRankBoost(java.lang.Long rankBoost)
withRankBoost
in class ContentTarget
public void setSearchable(boolean searchable)
public boolean isSearchable()
public CustomContentTarget withSearchable(boolean searchable)
public CustomContentTarget withSearchable(java.lang.Boolean searchable)
public void setRetrieveField(java.lang.String retrieveField)
public java.lang.String getRetrieveField()
public CustomContentTarget withRetrieveField(java.lang.String retrieveField)
public void setRetrievable(boolean retrievable)
public boolean isRetrievable()
public CustomContentTarget withRetrievable(boolean retrievable)
public CustomContentTarget withRetrievable(java.lang.Boolean retrievable)
public void setIndexKind(int indexKind)
public int getIndexKind()
public CustomContentTarget withIndexKind(int indexKind)
public CustomContentTarget withIndexKind(java.lang.Integer indexKind)
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 CustomContentTarget withAddBreakBetweenChunks(boolean addBreakBetweenChunks)
public CustomContentTarget withAddBreakBetweenChunks(java.lang.Boolean addBreakBetweenChunks)
public CustomContentTarget makeCopy()
makeCopy
in class ContentTarget
public static CustomContentTarget 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 CustomContentTarget 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.