
526
DEVELOPING
COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Las
t
upda
te
d 8/5/2010
•
Support for MS Office 2007 file formats
The ColdFusion installer automatically creates the ColdFusion 9 Solr service, which contains the Solr web application.
For UNIX and Linux, you need to start and stop the Solr shell script.
CFML tags used to configure Solr
cfcollection
To create a collection using this tag, specify
engine="solr"
with
action="create"/"list"/"map"
. For
a Solr collection, you do not need to specify the language. Language can be specified in the <cfindex> tag. All other
attributes remain the same.
cfindex
ColdFusion detects the search engine based on the collection name.
Language support
Solr supports the following languages:
•
Danish
•
Dutch
•
Finnish
•
French
•
German
•
Italian
•
Norwegian
•
Spanish
•
Portugese
•
Russian
•
Swedish
•
Chinese
•
Japanese
•
Korean
•
Czech
•
Greek
•
Thai
Solr supports documents in any language. If the document has a language (for example, Arabic) not listed above, it can
still index the content, but stemming is not available. In this case, do not specify a language attribute in the cfindex tag.
Solr supports stemming. That is, it considers the root form (stem) of the word for search. This applies only if you
provide the attribute
language.
Solr search examples
The following examples show the search syntax used while performing search operations using Solr:
•
Single word search: The following example shows how to search for a single word in a collection:
<cfsearch name="qsearch1" collection="solr_complex" criteria="Graphics">
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...