You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Konstantinos Mavrommatis (JIRA)" <ji...@apache.org> on 2016/03/25 02:22:25 UTC

[jira] [Commented] (OODT-925) Update schema.xml field definitions for SOLR 5.X

    [ https://issues.apache.org/jira/browse/OODT-925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15211243#comment-15211243 ] 

Konstantinos Mavrommatis commented on OODT-925:
-----------------------------------------------

Suggested fix:
setup the solr core using the data_driven_schema_configs method, and copied the definitions of the CAS.* fields in the file managed-schema.

<!-- core CAS product attributes -->
   <field name="CAS.ProductId" type="string" indexed="true" stored="true" required="true" multiValued="false" />
   <field name="CAS.ProductName" type="string" indexed="true" stored="true" required="true" multiValued="false" />
   <field name="CAS.ProductTypeName" type="string" indexed="true" stored="true" required="true" multiValued="false" />
   <field name="CAS.ProductTypeId" type="string" indexed="true" stored="true" required="true" multiValued="false" />
   <field name="CAS.ProductReceivedTime" type="date" indexed="true" stored="true" required="false" multiValued="false" />
   <field name="CAS.ProductStructure" type="string" indexed="true" stored="true" required="false" multiValued="false" />
   <field name="CAS.ProductTransferStatus" type="string" indexed="true" stored="true" required="false" multiValued="false" />

   <field name="CAS.RootReferenceOriginal" type="string" indexed="true" stored="true" required="false" multiValued="true" />
   <field name="CAS.RootReferenceDatastore" type="string" indexed="true" stored="true" required="false" multiValued="true" />
   <field name="CAS.RootReferenceFileSize" type="long" indexed="true" stored="true" required="false" multiValued="true" />
   <field name="CAS.RootReferenceMimeType" type="string" indexed="true" stored="true" required="false" multiValued="true" />

   <field name="CAS.ReferenceOriginal" type="string" indexed="true" stored="true" required="false" multiValued="true" />
   <field name="CAS.ReferenceDatastore" type="string" indexed="true" stored="true" required="false" multiValued="true" />
   <field name="CAS.ReferenceFileSize" type="long" indexed="true" stored="true" required="false" multiValued="true" />
   <field name="CAS.ReferenceMimeType" type="string" indexed="true" stored="true" required="false" multiValued="true" />

Replace the line:
<copyField source="*" dest="_text_"/>
with the following one 
<dynamicField name="*" type="text_general" indexed="true" />


> Update schema.xml field definitions for SOLR 5.X 
> -------------------------------------------------
>
>                 Key: OODT-925
>                 URL: https://issues.apache.org/jira/browse/OODT-925
>             Project: OODT
>          Issue Type: Improvement
>          Components: file manager
>    Affects Versions: 0.12
>         Environment: Any
>            Reporter: Konstantinos Mavrommatis
>             Fix For: 0.12
>
>
> Update schema.xml to match the definitions and requirements of SOLR 5.
> The current version of schema.xml is suitable for the 4.X generation of SOLR



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)