Adobe COLDFUSION 9 Manual page 535

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
<field name="contents" type="text" indexed="true"
multiValued="true" omitNorms="true"/>
with
<field name="contents" type="text" indexed="true" stored="true" required="false"
multiValued="true" omitNorms="true"/>
Restart Solr.
4
Reindex the collection.
5
Note: The modifications to solrconfig.xml and schema.xml will increase the index size.
Migrating from Verity to Solr
To migrate from Verity to Solr, perform the following tasks:
Step1: Migrate collections from Verity to Solr using ColdFusion Administrator
Log into ColdFusion Administrator.
1
2
Click Data & Services > Migrate Verity Collection
Select the name of the collection from the Verity collection name to migrate drop-down list.
3
Specify the name of the collection in the Name field.
4
5
Browse and select the path of the Verity collection that you want to migrate.
Click Submit.
6
Step 2: Change search engine in <cfcollection> tag
Specify the search engine for the <cfcollection> tag as engine = solr.
Step 3: Change the search code within <cfsearch> tag
Syntax searching for Solr collection is different from searching syntax for a Verity collection. The following examples
show how searching syntax is different in Solr from Verity:
The search criteria is set differently in Solr and Verity. Check the search criteria specified in the <cfsearch> tag after
migrating the collection to Solr.
For example, in Solr the criteria for searching the term "Green" and "ColdFusion" is:
<cfsearch
name="qsearch1"
collection="solr_complex"
criteria="+Green +Coldfusion">
However, in Verity the criteria for searching the same term is:
<cfsearch
name="qsearch1"
collection="Verity_complex"
type="simple"
criteria="Green AND Coldfusion">
Following are some more comparative examples:
• Using wildcards:
Solr
stored="false" required="false"
Last updated 8/5/2010
530

Advertisement

Table of Contents
loading

Table of Contents