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

    <cfsearch 
        name="qsearch1" 
        collection="solr_complex" 
        criteria ="te?t">

    Verity

    <cfsearch 
        name="qsearch1" 
        collection="Verity_complex" 
        type="explicit" 
        criteria="<WILDCARD>te?t">
  • Searching titles

    Solr:

    <cfsearch 
        name="qsearch1" 
        collection="solr_complex" 
        criteria ="title:fuzzy?.txt">

    Verity:

    <cfsearch 
        name="qsearch1" 
        collection="Verity_complex" 
        type="explicit"criteria="CF_TITLE<SUBSTRING>fuzzy">

For more examples of how search criteria is set in Solr, see Solr search examples and for Verity, see Using Verity Search Expressions.