Solr in ColdFusion needs some basic code change in creating ,indexing and searching a collection.
While creating a collection ColdFusion requires an attribute 'engine' to indentify a collection as Solr or Verity. Default value of 'engine' is verity. Defining the attribute 'engine' is one time activity, for indexing and search ColdFusion will automatically identify the collection type.
< cfcollection action="create"collection="mysolr"
This will create a solr collection named 'mysolr'. also there is no need to define language and categories at the time of creation of collection,language can be defined at the time of indexing a collection.
Indexing a Solr collection is similar to Verity.
< cfquery name="getCourses" datasource="cfdocexamples">For indexing a Solr collection in some other languages than English, language attribute can be defined in <> tag.
SELECT * FROM COURSES
< cfindex action="Update"
Solr supports following languages:
However, Solr supports indexing documents in any language. If the document has a language (for example, Arabic) not listed above, it can still index the content(as english), but stemming will not be available in search.