Skip to content

Commit

Permalink
[#2161] Update multilingual schema with changes from #2078 #1905 #1495.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Jun 16, 2015
1 parent e2e1970 commit c0e6fcb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ckan/config/solr/schema.xml
Expand Up @@ -16,6 +16,13 @@
limitations under the License.
-->

<!--
NB Please copy changes to this file into the multilingual schema:
ckanext/multilingual/solr/schema.xml
-->

<!-- Version should match the CKAN version
(x.y but not x.y.z since it needs to be a float) -->
<schema name="ckan" version="2.3">

<types>
Expand Down Expand Up @@ -169,4 +176,4 @@
<copyField source="maintainer" dest="text"/>
<copyField source="author" dest="text"/>

</schema>
</schema>
5 changes: 5 additions & 0 deletions ckanext/multilingual/solr/schema.xml
Expand Up @@ -373,12 +373,15 @@
<field name="ratings_average" type="float" indexed="true" stored="false" />
<field name="tags" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="groups" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="organization" type="string" indexed="true" stored="true" multiValued="false"/>

<field name="capacity" type="string" indexed="true" stored="true" multiValued="false"/>

<field name="res_name" type="textgen" indexed="true" stored="true" multiValued="true" />
<field name="res_description" type="textgen" indexed="true" stored="true" multiValued="true"/>
<field name="res_format" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="res_url" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="res_type" type="string" indexed="true" stored="true" multiValued="true"/>

<!-- catchall field, containing all other searchable text fields (implemented
via copyField further on in this schema -->
Expand Down Expand Up @@ -466,6 +469,8 @@
<copyField source="notes" dest="text"/>
<copyField source="tags" dest="text"/>
<copyField source="groups" dest="text"/>
<copyField source="organization" dest="text"/>
<copyField source="res_name" dest="text"/>
<copyField source="res_description" dest="text"/>
<copyField source="maintainer" dest="text"/>
<copyField source="author" dest="text"/>
Expand Down

0 comments on commit c0e6fcb

Please sign in to comment.