ColdFusion 9.0 Resources |
Migrating from Verity to SolrTo migrate from Verity to Solr, perform the following tasks: Step1: Migrate collections from Verity to Solr using ColdFusion Administrator
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:
For more examples of how search criteria is set in Solr, see Solr search examples and for Verity, see Using Verity Search Expressions. |