|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.verity.RulesQueryCooker
Rules Verity QueryCooker Implementation - applies rules to a query read from the configuration file.
The Config XML fragment should be inside a Verity or Parametric SearchSource.
XML Configuration Template:
<QueryCooker class="com.raritantechnologies.verity.RulesQueryCooker"
queryParam="query"
[ showQuery="false" ]
[ rulesFile="ExternalRulesFile.xml" ]
[ rulesName="UniqueRulesName" ]
[ rulesClassName="com.raritantechnologies.vqlparser.XMLQueryRules" ] >
{ the following is only present if rulesFile was not specified }
<Rules>
<Rule group="A" op=" field="ALL" wordMin="0" wordMax="5" id="1">
query
</Rule>
...
</Rules>
<QueryCooker />
| Constructor Summary | |
RulesQueryCooker()
|
|
RulesQueryCooker(java.lang.String queryParam)
|
|
| Method Summary | |
java.lang.String |
getHighlightQuery(java.lang.String[] searchSources,
OrderedMap queryParams,
ISearchFieldMap searchMap,
ILoginInfo userInfo)
returns a query suitable for use with Verity highlighting processes. |
java.lang.String |
getSourceQuery(java.lang.String[] searchSources,
OrderedMap queryParams,
ISearchFieldMap searchMap,
ILoginInfo userInfo)
returns a Verity Query Language (VQL) Source Query. |
java.lang.String |
getVerityQuery(java.lang.String[] searchSources,
OrderedMap queryParams,
ISearchFieldMap searchMap,
ILoginInfo userInfo)
returns a Verity Query Language (VQL) string for the form parameters submitted in queryParams. |
void |
initialize(org.w3c.dom.Element elem)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RulesQueryCooker()
public RulesQueryCooker(java.lang.String queryParam)
| Method Detail |
public java.lang.String getVerityQuery(java.lang.String[] searchSources,
OrderedMap queryParams,
ISearchFieldMap searchMap,
ILoginInfo userInfo)
IQueryCooker
getVerityQuery in interface IQueryCooker
public java.lang.String getSourceQuery(java.lang.String[] searchSources,
OrderedMap queryParams,
ISearchFieldMap searchMap,
ILoginInfo userInfo)
IQueryCooker
getSourceQuery in interface IQueryCooker
public java.lang.String getHighlightQuery(java.lang.String[] searchSources,
OrderedMap queryParams,
ISearchFieldMap searchMap,
ILoginInfo userInfo)
IQueryCooker
getHighlightQuery in interface IQueryCookerpublic void initialize(org.w3c.dom.Element elem)
initialize in interface IQueryCooker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||