|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.SearchXMLObject atg.search.routing.command.search.ReportDataControl
public class ReportDataControl
Controls the generation of NLP reportings data that's passed into the search reporting events to generate NLP-related search reports.
Controls the following reports: Length Report, Number Report, Unknown Report, Null Term Report, Nulx Term Report, Finder Term Report, Custom Term Report, Type Report, Topic Report, Top N Report.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
ReportDataControl()
Constructs a new instance with default settings, which means everything is enabled. |
Method Summary | |
---|---|
protected static ReportDataControl |
fromXmlParser(atg.search.routing.utils.SearchMessageNode rootIdx)
|
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
java.lang.String |
getAutocat()
Returns the autocat number, optionally followed with a 'p' if pruning is enabled. |
java.lang.Boolean |
getAutospell()
Indicates whether autospell is enabled |
java.lang.Boolean |
getCluster()
Indicates whether the cluster report is enabled |
java.lang.Boolean |
getCustom()
Indicates whether the custom report is enabled |
java.lang.Boolean |
getDebug()
Indicatges whether debug is enabled |
java.lang.Boolean |
getFinder()
Indicates whether the finder report is enabled |
java.lang.Boolean |
getLength()
Returns whether the length report is enabled |
java.lang.Integer |
getMaxTerms()
Returns the maximum terms |
java.lang.Integer |
getMinWeight()
Returns the minimum weight |
java.lang.Boolean |
getNull()
Indicates whether the Null report is enabled |
java.lang.Boolean |
getNulx()
Indicates whether the nulx report is enabled |
java.lang.Boolean |
getNumber()
Indicates whether the number report is enabled |
java.lang.String |
getRequestTag()
|
java.lang.Boolean |
getTerm()
Indicates whether the term report is enabled |
java.lang.Boolean |
getTopic()
Indicates whether the topic report is enabled |
java.lang.Boolean |
getType()
Indicates whether the type report is enabled |
java.lang.Boolean |
getUnknown()
Indicates whether the unknown report is enabled |
boolean |
isEnabled()
Indicates whether the control should be used. |
void |
setAutocat(java.lang.String autocat)
Sets the autocat number, optionally followed with a 'p' if pruning is enabled. |
void |
setAutospell(java.lang.Boolean autospell)
Sets whether autospell is enabled |
void |
setCluster(java.lang.Boolean cluster)
One of the controls for the Top N Report. |
void |
setCustom(java.lang.Boolean custom)
28.7 Custom Term Report This report is similar to the Unknown Report except it relates to "custom" terms, i.e a term that has related terms defined in either the dictionary adaptors or the custom terminology data. This report data is controlled by the following query XML attribute: <query><reportdata custom="bool"> And the response contains the following data in a subelement: <reportdataResults> <CustomData context="adapterName">term</CustomData> The context attribute holds the name of the dictionary adaptor the term was found in, including the special TermTool adaptor used by default for custom terminology. |
void |
setDebug(java.lang.Boolean debug)
Controls whether debug is enabled |
void |
setEnabled(boolean pEnabled)
Call this to enable/disable the control. |
void |
setFinder(java.lang.Boolean finder)
28.6 Finder Term Report This report is similar to the Unknown Report except it relates to "finder" terms, i.e a complex term that has been identified (and indexed) using the language "TermFinder" patterns. |
void |
setLength(java.lang.Boolean length)
28.1 Length Report This is a simple report that sorts and counts queries by length of "content" terms (excluding punct, prepositions, and operators like 'a'). |
void |
setMaxTerms(java.lang.Integer maxTerms)
One of the controls for the Top N Report. |
void |
setMinWeight(java.lang.Integer minWeight)
One of the controls for the Top N Report. |
void |
setNull(java.lang.Boolean aNull)
28.4 Null Term Report This report is similar to the Unknown Report except it relates to "null" terms, i.e a term and its (thesaurus) related terms that are not in the indexed content. |
void |
setNulx(java.lang.Boolean nulx)
28.5 Nulx Term Report This report is similar to the Unknown Report except it relates to "nulx" terms, i.e a term that is not in the indexed content, but its related terms are. This report data is controlled by the following query XML attribute: <query><reportdata nulx="bool"> And the response contains the following data in a subelement: <reportdataResults> <NulxData>term</NulxData> Note that more than one nulx term may appear in a query, so more than one NulxData element maybe returned. |
void |
setNumber(java.lang.Boolean number)
28.2 Number Report This is a simple report that sorts and counts queries by each of their number terms, if any. |
void |
setTerm(java.lang.Boolean term)
This is reserved for a future report - should currently be disabled. |
void |
setTopic(java.lang.Boolean topic)
28.9 Topic Report This is a simple report that sorts and counts queries by their categories, if any. |
void |
setType(java.lang.Boolean type)
28.8 Type Report This is a simple report that sorts and counts queries by their "type", i.e. |
void |
setUnknown(java.lang.Boolean unknown)
28.3 Unknown Report This is a simple report that sorts and counts queries by each of their unknown terms, if any. |
void |
setXml(java.lang.String pXml)
Use this to override xml generation |
java.lang.String |
toXML()
returns reportdata xml unless it has been disabled |
static ReportDataControl |
valueOf(java.lang.String pXml)
|
Methods inherited from class atg.search.routing.command.SearchXMLObject |
---|
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public ReportDataControl()
Method Detail |
---|
public java.lang.Boolean getDebug()
public void setDebug(java.lang.Boolean debug)
debug
- whether debug is enabledpublic java.lang.Boolean getAutospell()
public void setAutospell(java.lang.Boolean autospell)
autospell
- whether autospell is enabledpublic java.lang.String getAutocat()
public void setAutocat(java.lang.String autocat)
autocat
- the autocat number, optionally followed with a 'p' if pruning is enabled.public java.lang.Integer getMinWeight()
public void setMinWeight(java.lang.Integer minWeight)
minWeight
- The minimum term weight for a term to be included in the normalization is specified by minWeight.public java.lang.Integer getMaxTerms()
public void setMaxTerms(java.lang.Integer maxTerms)
maxTerms
- The maximum number of terms to include in the cluster data is specified by maxTerms.public java.lang.Boolean getLength()
public void setLength(java.lang.Boolean length)
length
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getNumber()
public void setNumber(java.lang.Boolean number)
number
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getUnknown()
public void setUnknown(java.lang.Boolean unknown)
unknown
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getType()
public void setType(java.lang.Boolean type)
type
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getTopic()
public void setTopic(java.lang.Boolean topic)
topic
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getCluster()
public void setCluster(java.lang.Boolean cluster)
cluster
- true use clustering in the Top N Reportpublic java.lang.Boolean getTerm()
public void setTerm(java.lang.Boolean term)
term
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getCustom()
public void setCustom(java.lang.Boolean custom)
custom
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getFinder()
public void setFinder(java.lang.Boolean finder)
finder
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getNull()
public void setNull(java.lang.Boolean aNull)
aNull
- true enables capture of the data needed to populate the data needed for this report.public java.lang.Boolean getNulx()
public void setNulx(java.lang.Boolean nulx)
nulx
- true enables capture of the data needed to populate the data needed for this report.public void setXml(java.lang.String pXml)
pXml
- xmlpublic boolean isEnabled()
public void setEnabled(boolean pEnabled)
pEnabled
- true/false to enable/disable the controlprotected static ReportDataControl fromXmlParser(atg.search.routing.utils.SearchMessageNode rootIdx)
public static ReportDataControl valueOf(java.lang.String pXml)
pXml
- xml
ReportDataControl
, or null if the input was nullpublic java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
public java.lang.String toXML() throws atg.search.routing.command.IncompleteCommandException
toXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |