collectiveaccess/providence — pull request #62 by naeemmuhammad (2013-12-20 17:07:22+00:00)
Title: Solr Schema Creation Fix

Solr indexing in CA version 1.4 is not working properly because the indexing information send to solr is not compatible with the solr schema. This is true for metadata based indexes. For example: in order to index a metadata element with id 100, the indexer in version 1.4 will send ca_objects.A100 element id to solr. Whereas, solr does not recognize this id because old solr schemas or new solr schemas created with version 1.4 have ca_objects._ca_attribute_100 as an id of this metadata element.

In CA version 1.4, "A" is appended to metadata elements ids, whereas "_ca_attribute_" was appended in older versions. However, corresponding changes while creating solr schema have not been provided in version 1.4.

This fix solves this issue by adjusting the metadata elements information at the time of creating a solr schema, in SolrConfiguration.php file.

Additionally, the createSolrConfiguration.php file is not available in version 1.4, this file is needed in order to a create solr schema.