![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/0/41/041f93a3-11a9-4d33-a74b-89372bd39d58/041f93a3-11a9-4d33-a74b-89372bd39d58-bg26.png)
Storefront
BEA AquaLogic Commerce Services Deployment Guide 33
<property name="authorizeNetURL"
value="https://certification.authorize.net/gateway/transact.dll"/>
<property name="testMode" value="true"/>
<property name="loginID" value="XXXX"/>
<property name="transKey" value="XXXX"/>
<property name="version" value="3.1"/>
<property name="delimChar" value="|"/> <!--optional-->
<property name="encapChar" value=""/> <!--optional-->
</gateway>
Fuzzy Search in Lucene
The search mechanism in AquaLogic Commerce Services takes advantage of the Fuzzy Search
feature in Lucene. Fuzzy Search provides a way to search for terms similar to a specified term
(for example with misspelled words).
The Fuzzy Search can be configured with two settings in the commerce-config.xml
1. minimumSimilarity - Value between 0 and 1 to set the required similarity between the query
term and the matching terms. For example, for a minimumSimilarity of 0.5 a term of the same
length as the query term is considered similar to the query term if the edit distance between both
terms is less than length(term)*0.5 where edit distance is a measure of similarity between two
strings and distance is measured as the number of character deletions, insertions, or substitutions
required to transform one string to the other string.
2. prefixLength - length of common non-fuzzy prefix
Spelling Suggestions
Spelling suggestions can be generated for Storefront keyword queries. The Lucene Spellchecker
is used to find words similar to terms in the original keyword query. This is configured in the
following elements.
• minimumResultsThreshold - If the number of results does not exceed this setting the search
will attempt to suggest possible alternate queries
• maximumSuggestionsPerWord - The maximum amount of suggestions that will be generated
for each word in the query
• accuracy - The degree of similarity that suggested words will have to the original keywords
Encryption Key
For security reasons, this key field is not pre-set to any particular value out-of-the-box. You must
make up your own site-specific value, and set this field. Otherwise, the application will NOT
work with the empty default encryption key. Any string at least 24 characters may be used for the
key. This must be entered in all AquaLogic Commerce Services application commerce-
config.xml configuration files (Storefront, Commerce Manager, and Connect).