
480
DEVELOPING
COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Las
t
upda
te
d 8/5/2010
Specify a language when you create the collection. The language you specify should match the language the documents
were authored in. By specifying the language your documents are written in, Verity is able to correctly interpret accented
characters, and, in many languages, use variations of word stems and roots. However, Verity does not support the
following in Eastern European and Middle Eastern languages, including these languages in the Universal language pack:
•
Stemming
•
Normalization
•
Decomposition of compound words into subwords
•
Part of speech
•
Special number handling
If you have documents in several languages, create separate collections for each of them.
To specify a language when you are indexing data, select the language from the pop-up menu when you create a
collection with the ColdFusion Administrator. In CFML, the
cfcollection
,
cfindex
, and
cfsearch
tags have an
optional
language
attribute that you use to specify the language of the collection.
Use the following table to find the correct value for the
language
attribute for your collection. For example, the
following code creates a collection for simplified Chinese:
<cfcollection action = "create" collection = "lei_01"
path = "c:\CFusion\verity\collections"
language = "simplified_chinese">
The following table lists the languages names and attributes that ColdFusion supports:
Language
Language attribute
Arabic
arabic
Chinese (simplified)
simplified_chinese
Chinese (traditional)
traditional_chinese
Czech
czech
Danish
danish
Dutch
dutch
English (Basic)
english
English (Advanced)
englishx
Finnish
finnish
French
french
German
german
Greek
greek
Hebrew
hebrew
Hungarian
hungarian
Italian
italian
Japanese
japanese
Korean
korean