public abstract class ContentTarget extends Target implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_RANK_BOOST |
long |
forcedRank |
java.lang.String |
indexField |
long |
rankBoost |
Constructor and Description |
---|
ContentTarget() |
ContentTarget(ContentTarget o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ContentTarget.
|
static ContentTarget |
fromString(java.lang.String s)
String representation of this ContentTarget.
|
long |
getForcedRank()
Sets the ranking value for chunks in this mapping.
-1 means that the chunk internal ranking value is kept. |
java.lang.String |
getIndexField()
The indexField to populate with this content.
If null, the contextName of the DocumentChunk will be used for the index field. |
long |
getRankBoost()
Offsets the chunk internal ranking value.
|
ContentTarget |
makeCopy() |
static ContentTarget |
readFrom(java.io.InputStream is)
Read this ContentTarget from an XML fragment.
|
void |
setForcedRank(long forcedRank)
Sets the ranking value for chunks in this mapping.
-1 means that the chunk internal ranking value is kept. |
void |
setIndexField(java.lang.String indexField)
The indexField to populate with this content.
If null, the contextName of the DocumentChunk will be used for the index field. |
void |
setRankBoost(long rankBoost)
Offsets the chunk internal ranking value.
|
java.lang.String |
toString()
String representation of this ContentTarget.
|
ContentTarget |
withForcedRank(long forcedRank) |
ContentTarget |
withForcedRank(java.lang.Long forcedRank) |
ContentTarget |
withIndexField(java.lang.String indexField) |
ContentTarget |
withRankBoost(long rankBoost) |
ContentTarget |
withRankBoost(java.lang.Long rankBoost) |
void |
writeTo(java.io.OutputStream os) |
public java.lang.String indexField
public long forcedRank
public long rankBoost
public static final long DEFAULT_RANK_BOOST
public ContentTarget()
public ContentTarget(ContentTarget o)
public void setIndexField(java.lang.String indexField)
public java.lang.String getIndexField()
public ContentTarget withIndexField(java.lang.String indexField)
public void setForcedRank(long forcedRank)
public long getForcedRank()
public ContentTarget withForcedRank(long forcedRank)
public ContentTarget withForcedRank(java.lang.Long forcedRank)
public void setRankBoost(long rankBoost)
public long getRankBoost()
public ContentTarget withRankBoost(long rankBoost)
public ContentTarget withRankBoost(java.lang.Long rankBoost)
public ContentTarget makeCopy()
public static ContentTarget 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
public static ContentTarget 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()
Copyright © 2021 Dassault Systèmes, All Rights Reserved.