com.raritantechnologies.verity
Class TopicHilighter

java.lang.Object
  extended bycom.raritantechnologies.verity.TopicHilighter
All Implemented Interfaces:
IQueryCooker

public class TopicHilighter
extends java.lang.Object
implements IQueryCooker

TopicHilighter Verity IQueryCooker Implementation - returns value of all Topics used in the query.

XML Configuration Template:
  <TopicHilighter queryParam="[ name of text query parameter ]" 
                     topicLookupFileName="[ name of topic name - topic term lookup file]" >

     <!-- One or more Taxonomy fields that need topic lookups done -->
     <Taxonomy name="[a taxonomy field name]" />
     <Taxonomy name="[ another taxonomyfield]" />

     <!-- etc. . . -->

  </TopicHilighter
 

Developed by Raritan Technologies .

Author:
Chris Peterson

Constructor Summary
TopicHilighter()
           
TopicHilighter(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

TopicHilighter

public TopicHilighter()

TopicHilighter

public TopicHilighter(java.lang.String queryParam)
Method Detail

getVerityQuery

public java.lang.String getVerityQuery(java.lang.String[] searchSources,
                                       OrderedMap queryParams,
                                       ISearchFieldMap searchMap,
                                       ILoginInfo userInfo)
Description copied from interface: IQueryCooker
returns a Verity Query Language (VQL) string for the form parameters submitted in queryParams. The Search sources are needed to map the input params to the verity collection fields. This mapping can be different for different search sources.

Specified by:
getVerityQuery in interface IQueryCooker

getSourceQuery

public java.lang.String getSourceQuery(java.lang.String[] searchSources,
                                       OrderedMap queryParams,
                                       ISearchFieldMap searchMap,
                                       ILoginInfo userInfo)
Description copied from interface: IQueryCooker
returns a Verity Query Language (VQL) Source Query.

Specified by:
getSourceQuery in interface IQueryCooker

getHighlightQuery

public java.lang.String getHighlightQuery(java.lang.String[] searchSources,
                                          OrderedMap queryParams,
                                          ISearchFieldMap searchMap,
                                          ILoginInfo userInfo)
Description copied from interface: IQueryCooker
returns a query suitable for use with Verity highlighting processes.

Specified by:
getHighlightQuery in interface IQueryCooker

initialize

public void initialize(org.w3c.dom.Element elem)
Specified by:
initialize in interface IQueryCooker