
530
DEVELOPING
COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Las
t
upda
te
d 8/5/2010
<field name="contents" type="text" indexed="true" stored="false" required="false"
multiValued="true" omitNorms="true"/>
with
<field name="contents" type="text" indexed="true" stored="true" required="false"
multiValued="true" omitNorms="true"/>
4
Restart Solr.
5
Reindex the collection.
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
1
Log into ColdFusion Administrator.
2
Click Data & Services > Migrate Verity Collection
3
Select the name of the collection from the Verity collection name to migrate drop-down list.
4
Specify the name of the collection in the Name field.
5
Browse and select the path of the Verity collection that you want to migrate.
6
Click Submit.
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