<xsd:schema xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation>
Attribute name and value that belongs to a criteria and will be used to match an information being indexed or searched.
<BR/>
For more information, see element
<CODE>searchConfig/criterias/criteria</CODE>
.
<BR/>
The content of this element represents the attribute value.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="name" type="xsd:string"> <xsd:annotation>
<xsd:documentation>
Attribute name.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Specifies a collection of attributes and respective values. If an information that is being indexed
(encapsulated in SearchContentField objects) or searched (encapsulated in a SearchQuery
object's attributes) matches the values of a criteria, this criteria is used to identify which
<CODE>config</CODE>
node will be used to configure the respective Indexer or Searcher object that
will perform the indexing or searching.
<BR/>
<BR/>
Example: If we have the following Indexer configuration:
<CODE>
<BR/>
...
<BR/>
<indexer id="default" className="lumis.search.lucene.LuceneIndexer">
<BR/>
   <config>
<BR/>
      <indexBasePath>C:\indexes\default</indexBasePath>
<BR/>
   </config>
<BR/>
   <config criteriaId="SportNews">
<BR/>
      <indexBasePath>C:\indexes\SportNews</indexBasePath>
<BR/>
   </config>
<BR/>
</indexer>
<BR/>
...
<BR/>
<criteria id="SportNews">
<BR/>
   <attribute name="lum_serviceInstanceId">BAD7D575B9BF11DAAFA7198B7D208AAD</attribute>
<BR/>
</criteria>
</CODE>
All contents of the service instance
<CODE>BAD7D575B9BF11DAAFA7198B7D208AAD</CODE>
will be
indexed to the directory
<CODE>C:\indexes\SportNews</CODE>
, while all other contents will be indexed
to the directory
<CODE>C:\indexes\default</CODE>
.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:annotation>
<xsd:documentation>
<!-- copied from type criteriaAttribute -->
Attribute name and value that belongs to a criteria and will be used to match an information being indexed or searched.
<BR/>
For more information, see element
<CODE>searchConfig/criterias/criteria</CODE>
.
<BR/>
The content of this element represents the attribute value.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="required"/> </xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Collection of criterias of specific configurations.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="criteria" type="criteria"> <xsd:annotation>
<xsd:documentation>
<!-- copied from type criteria -->
Specifies a collection of attributes and respective values. If an information that is being indexed
(encapsulated in SearchContentField objects) or searched (encapsulated in a SearchQuery
object's attributes) matches the values of a criteria, this criteria is used to identify which
<CODE>config</CODE>
node will be used to configure the respective Indexer or Searcher object that
will perform the indexing or searching.
<BR/>
<BR/>
Example: If we have the following Indexer configuration:
<CODE>
<BR/>
...
<BR/>
<indexer id="default" className="lumis.search.lucene.LuceneIndexer">
<BR/>
   <config>
<BR/>
      <indexBasePath>C:\indexes\default</indexBasePath>
<BR/>
   </config>
<BR/>
   <config criteriaId="SportNews">
<BR/>
      <indexBasePath>C:\indexes\SportNews</indexBasePath>
<BR/>
   </config>
<BR/>
</indexer>
<BR/>
...
<BR/>
<criteria id="SportNews">
<BR/>
   <attribute name="lum_serviceInstanceId">BAD7D575B9BF11DAAFA7198B7D208AAD</attribute>
<BR/>
</criteria>
</CODE>
All contents of the service instance
<CODE>BAD7D575B9BF11DAAFA7198B7D208AAD</CODE>
will be
indexed to the directory
<CODE>C:\indexes\SportNews</CODE>
, while all other contents will be indexed
to the directory
<CODE>C:\indexes\default</CODE>
.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Searcher definition.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="config"> <xsd:annotation>
<xsd:documentation>
Searcher configuration. This node is passed to the searcher object and its schema is specific
for each searcher implementation.
<BR/>
<BR/>
<B>
Schema for Default Implementation (className="lumis.search.lucene.LuceneSearcher")
</B>
<BR/>
<BR/>
<B>Example:</B>
<CODE>
<BR/>
<indexBasePath>${lum_portalDataPath}lucene/index/${lum_serviceInstanceId}</indexBasePath>
<BR/>
<indexBasePath indexerId="default" />
</CODE>
<BR/>
<BR/>
<B>
Element
<CODE>indexBasePath</CODE>
</B>
: Define the path to the directory used by Lucene to search for data.
<BR/>
The value can contain EL tags to be replaced in runtime by the respective field value.
(e.g.
<CODE>${lum_portalDataPath}</CODE>
will be replaced by the value of the field with name
<CODE>"lum_portalDataPath"</CODE>
).
<BR/>
The
<CODE>config</CODE>
element must contain at least one
<CODE>indexBasePath</CODE>
and can contain more than
one of this element, to define one or more indexes to use when searching for data.
<BR/>
The
<CODE>indexerId</CODE>
attribute can be used to specify that the
<CODE>indexBasePath</CODE>
element
must use all
<CODE>indexBasePath</CODE>
definition of the specified indexer. This allows the reuse of a
<CODE>indexBasePath</CODE>
definition set.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="required"> <xsd:annotation>
<xsd:documentation>
Searcher identifier.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="className" type="xsd:string" use="required"> <xsd:annotation>
<xsd:documentation>
Searcher class name.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Indexer definition.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="config"> <xsd:annotation>
<xsd:documentation>
<![CDATA[
Indexer configuration. This node is passed to the indexer object and its schema is specific
for each indexer implementation.
<BR/><BR/>
<B>Schema for Default Implementation (className="lumis.search.lucene.LuceneIndexer")</B>
<BR/><BR/>
<B>Example:</B>
<CODE>
<BR/><indexBasePath>${lum_portalDataPath}lucene/index/${lum_serviceInstanceId}</indexBasePath>
<BR/><maxFieldLength>10000</maxFieldLength>
<BR/><analyzer className="lumis.search.lucene.LumisAnalyzer">
<BR/>   <tokenizerClassName>org.apache.lucene.analysis.standard.StandardTokenizer</tokenizerClassName>
<BR/>   <tokenFilterClassName>org.apache.lucene.analysis.standard.StandardFilter</tokenFilterClassName>
<BR/>   <tokenFilterClassName>org.apache.lucene.analysis.LowerCaseFilter</tokenFilterClassName>
<BR/>   <tokenFilterClassName>lumis.search.lucene.AccentFilter</tokenFilterClassName>
<BR/></analyzer>
</CODE>
<BR/><BR/>
<B>Element <CODE>indexBasePath</CODE></B>: Define the path to the directory used by Lucene to index data.<BR/>
The value can contain EL tags to be replaced in runtime by the respective field value.
(e.g. <CODE>${lum_portalDataPath}</CODE> will be replaced by the value of the field with name
<CODE>"lum_portalDataPath"</CODE>).<BR/>
The config element must contain at least one <CODE>indexBasePath</CODE> and can contain more than one of this
element, to define one or more indexes to store information being indexed.
<BR/><BR/>
<B>Element <CODE>maxFieldLength</CODE></B>: Define the maximum length for field values to be indexed.<BR/>
Default value:<BR/>
<maxFieldLength>10000</maxFieldLength>
<BR/><BR/>
<B>Element <CODE>analyzer</CODE></B>: Define classes for the analyzer, tokenizer and token filters, to be used
in indexing processes.<BR/>
Default value:
<BR/><analyzer className="lumis.search.lucene.LumisAnalyzer">
<BR/>   <tokenizerClassName>org.apache.lucene.analysis.standard.StandardTokenizer</tokenizerClassName>
<BR/>   <tokenFilterClassName>org.apache.lucene.analysis.standard.StandardFilter</tokenFilterClassName>
<BR/>   <tokenFilterClassName>org.apache.lucene.analysis.LowerCaseFilter</tokenFilterClassName>
<BR/>   <tokenFilterClassName>lumis.search.lucene.AccentFilter</tokenFilterClassName>
<BR/></analyzer>
]]>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="required"> <xsd:annotation>
<xsd:documentation>
Indexer identifier.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="className" type="xsd:string" use="required"> <xsd:annotation>
<xsd:documentation>
Indexer class name.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Collection of indexers of a search engine.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="1" name="indexer" type="indexer"> <xsd:annotation>
<xsd:documentation>
<!-- copied from type indexer -->
Indexer definition.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Collection of searchers of a search engine.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="1" name="searcher" type="searcher"> <xsd:annotation>
<xsd:documentation>
<!-- copied from type searcher -->
Searcher definition.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Search engine configuration. Define indexers and searchers of the search engine.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:annotation>
<xsd:documentation>
<!-- copied from type indexers -->
Collection of indexers of a search engine.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:annotation>
<xsd:documentation>
<!-- copied from type searcher -->
Collection of searchers of a search engine.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/> </xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Collection of configured search engines.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:annotation>
<xsd:documentation>
<!-- copied from type searchEngine -->
Search engine configuration. Define indexers and searchers of the search engine.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:annotation>
<xsd:documentation>
Root of the search configuration.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:annotation>
<xsd:documentation>
<!-- copied from type searchEngines -->
Collection of configured search engines.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:annotation>
<xsd:documentation>
<!-- copied from type criterias -->
Collection of criterias of specific configurations.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>