Search Configuration Parameters
The advanced search capabilities of the Comergent eBusiness System are specified in the SearchConfigurationParameters.xml file. A sample file is included here:
<SearchConfigurations>
<SearchSystemConfigurations>
<AutoReload activated="false" reloadFilePeriod="30"/>
</SearchSystemConfigurations>
<IndexSets>
<!--By convention, the attribute "id" through out the entire docu-ment should be used by the application programmer to reference enti-ties in their programs. The attribute "id" will then be resolved into "key" via some algorithm by the internal processes. Attribute "name" is added for readibility and is not used to identify entities.-->
<IndexSet description="MasterIndex" fullBuilderClass="com.comer-gent.reference.appservices.productService.search.indexBuilder.Cata-logIndexSetBuilder" id="MasterIndex"
incrementalBuilderClass="com.comergent.reference.appservices.productService.search.indexBuilder.CatalogIndexSetIncrementalBuilder"
indexSetPath="MasterIndex_600634">
<Locales>
<Locale id="en_US" queryParserClass="com.comergent.api.appser-vices.search.queryParser.standard.CmgtQueryParser">
<Analyzers>
<Analyzer analyzerClass="com.comergent.api.appser-vices.search.analysis.CatalogSearchAnalyzer"
description="CatalogAnalyzer" id="search"/>
<Analyzer analyzerClass="com.comergent.api.appser-vices.search.analysis.CatalogSearchAnalyzer"
description="CatalogAnalyzer" id="build"/>
</Analyzers>
<DictionaryFile file="CatalogDictionary.mappings"/>
</Locale>
</Locales>
<SearchFields>
<!--The value of the attribute "key" is the concatination of keys from the Builder's path, plus the key from the IndexField's. For the search to be correct this key value has to be exact. There will be validation routine built into the loader in the future.-->
<SearchField active="false" defaultWeight="1.0" id="AssignedPC"
key="prod.pc.ID" useDictionary="false"/>
<SearchField active="false" defaultWeight="1.0" id="AssignedFtr"
key="prod.ftr.ID" useDictionary="false"/>
<SearchField active="true" defaultWeight="1.0" id="prodID"
key="prod.ID" useDictionary="true"/>
<SearchField active="false" defaultWeight="1.0" id="prodSDate"
key="prod.SDATE" useDictionary="false"/>
<SearchField active="true" defaultWeight="1.0" id="prodAttach"
key="prod.attach.DATASHEET" useDictionary="true"/>
<SearchField active="false" defaultWeight="1.0" id="supplierID"
key="prod.supplier.ID" useDictionary="false"/>
<SearchField active="false" defaultWeight="1.0"
id="AssignedVisibleFtr" key="prod.ftr.VID"
useDictionary="false"/>
<SearchField active="true" defaultWeight="1.0" id="prodDesc"
key="prod.DESC" useDictionary="true"/>
<SearchField active="false" defaultWeight="1.0" id="price"
key="prod.pr.PRICE" useDictionary="false"/>
<SearchField active="false" defaultWeight="1.0" id="prodEDate"
key="prod.EDATE" useDictionary="false"/>
<SearchField active="true" defaultWeight="1.0" id="prodName"
key="prod.NAME" useDictionary="true"/>
<SearchField active="true" defaultWeight="1.0" id="ftrDesc"
key="prod.ftr.DESC" useDictionary="true"/>
<SearchField active="true" defaultWeight="1.0" id="supersession"
key="prod.SUPER" useDictionary="false"/>
<SearchField active="false" defaultWeight="1.0" id="prodSellable"
key="prod.SF" useDictionary="false"/>
<SearchField active="false" defaultWeight="1.0" id="prodStat"
key="prod.STAT" useDictionary="false"/>
<SearchField active="true" defaultWeight="1.0" id="ftrName"
key="prod.ftr.NAME" useDictionary="true"/>
</SearchFields>
<Builder builderClass="com.comergent.reference.appservices.prod-uctService.search.indexBuilder.GenericBuilder"
description="productBuilder" entityClass="com.comergent.api.apps-ervices.productService.IBizProduct" key="prod">
<IndexFields>
<IndexField id="EndDate" index="true" key="EDATE" store="true"
tokenize="false"/>
<IndexField id="ProductID" index="true" key="ID" store="true"
tokenize="true"/>
<IndexField id="Description" index="true" key="DESC" store="false"
tokenize="true"/>
<IndexField id="ProductStatusCode" index="true" key="STAT"
store="true" tokenize="false"/>
<IndexField id="StartDate" index="true" key="SDATE" store="true"
tokenize="false"/>
<IndexField id="HasAssignedSupersession" index="true" key="SUPER"
store="true" tokenize="false"/>
<IndexField id="SellableFlag" index="true" key="SF" store="true"
tokenize="false"/>
<IndexField id="Name" index="true" key="NAME" store="true"
tokenize="true"/>
</IndexFields>
<Builders>
<Builder builderClass="com.comergent.reference.appservices.prod-uctService.search.indexBuilder.ProductFeatureBuilder"
description="productFeatureBuilder" entityClass="com.comer-gent.reference.appservices.productService.search.index-Builder.IndexedFeatureBean" key="ftr">
<IndexFields>
<IndexField id="VisibleFeatureKey" index="true" key="VID"
store="true" tokenize="true"/>
<IndexField id="Description" index="true" key="DESC" store="false"
tokenize="true"/>
<IndexField id="Name" index="true" key="NAME" store="true"
tokenize="true"/>
<IndexField id="FeatureKey" index="true" key="ID" store="true"
tokenize="true"/>
</IndexFields>
<Builders/>
</Builder>
<Builder builderClass="com.comergent.reference.appservices.prod-uctService.search.indexBuilder.ProductSupplierBuilder"
description="productSupplierBuilder"
entityClass="com.comergent.bean.simple.IDataLightWeightPartner"
key="supplier">
<IndexFields>
<IndexField id="PartnerKey" index="true" key="ID" store="true"
tokenize="true"/>
</IndexFields>
<Builders/>
</Builder>
<Builder builderClass="com.comergent.reference.appservices.prod-uctService.search.indexBuilder.ProductCachedPCBuilder"
description="productCategoryBuilder" entityClass="" key="pc">
<IndexFields>
<IndexField id="ProductCategoryKey" index="true" key="ID"
store="true" tokenize="true"/>
</IndexFields>
<Builders/>
</Builder>
<Builder builderClass="com.comergent.reference.appservices.prod-uctService.search.indexBuilder.PriceListBuilder"
description="productPriceListBuilder" entityClass="" key="pr">
<IndexFields>
<IndexField id="UnitListPrice" index="true" key="PRICE"
store="true" tokenize="false"/>
</IndexFields>
<Builders/>
</Builder>
<Builder builderClass="com.comergent.reference.appser-vices.productService.search.indexBuilder.ProductAttachmentBuilder"
description="productAttachmentBuilder" entityClass=""
key="attach">
<IndexFields>
<IndexField id="DataSheet" index="true" key="DATASHEET"
store="false" tokenize="true"/>
</IndexFields>
<Builders/>
</Builder>
</Builders>
</Builder>
</IndexSet>
</IndexSets>
</SearchConfigurations>
 |
 |
|
|