Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove un-needed stored fields #39

Merged
merged 2 commits into from Jun 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions _template/_conf/schema.xml
Expand Up @@ -11,10 +11,10 @@
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<!-- These are the fields from the "artist" core; edit as needed -->
<field name="alias" type="text_multi" indexed="true" stored="true" multiValued="true" />
<field name="alias" type="text_multi" indexed="true" stored="false" multiValued="true" />
<field name="area" type="text_multi" indexed="true" stored="false" multiValued="true" />
<field name="arid" type="mbid" indexed="true" stored="false" />
<field name="artist" type="text" indexed="true" stored="true" />
<field name="artist" type="text" indexed="true" stored="false" />
<field name="artistaccent" type="keep_accents" indexed="true" stored="false" />
<field name="begin" type="date" indexed="true" stored="false" />
<field name="beginarea" type="text_multi" indexed="true" stored="false" multiValued="true" />
Expand All @@ -30,7 +30,7 @@
<field name="mbid" type="mbid" indexed="true" stored="true" required="true" />
<!-- copies name exactly as it appears in the database, so it may be diverted into analysis for
"artist" and "artistaccent"-->
<field name="name" type="string" indexed="true" stored="true" />
<field name="name" type="string" indexed="true" stored="false" />
<field name="names" type="text_multi" indexed="true" stored="false" multiValued="true" />
<field name="sortname" type="text" indexed="true" stored="false" required="true" />
<field name="tag" type="text_multi" indexed="true" stored="false" multiValued="true" />
Expand Down
14 changes: 4 additions & 10 deletions annotation/conf/schema.xml
Expand Up @@ -6,18 +6,12 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="entity" type="mbid" indexed="true" stored="true" />
<field name="entity" type="mbid" indexed="true" stored="false" />
<!-- id needs to be indexed because it's the unique key -->
<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="name" type="text" indexed="true" stored="true" />
<field name="text" type="text" indexed="true" stored="true" />
<field name="type" type="string" indexed="true" stored="true" />
<!-- catch is a catch-all field used as the default search field used when no field is specified
in the "Indexed search with advanced query syntax" search field. -->
<field name="catch" type="text_mult" indexed="true" stored="false" multiValued="true" />
<copyField source="text" dest="catch" />
<copyField source="name" dest="catch" />
<copyField source="type" dest="catch" />
<field name="name" type="text" indexed="true" stored="false" />
<field name="text" type="text" indexed="true" stored="false" />
<field name="type" type="string" indexed="true" stored="false" />
<!-- Holds data for reponse writer -->
<field name="_store" type="storefield" indexed="false" stored="true" />
<!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
Expand Down
10 changes: 2 additions & 8 deletions area/conf/schema.xml
Expand Up @@ -8,11 +8,8 @@
<similarity class="solr.SchemaSimilarityFactory" />
<field name="aid" type="mbid" indexed="true" stored="false" />
<field name="alias" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="area" type="text" indexed="true" stored="true" required="true" />
<field name="area" type="text" indexed="true" stored="false" required="true" />
<field name="begin" type="date" indexed="true" stored="false" />
<!-- catch is a catch-all field used as the default search field used when no field is specified
in the "Indexed search with advanced query syntax" search field. -->
<field name="catch" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="comment" type="text" indexed="true" stored="false" />
<field name="end" type="date" indexed="true" stored="false" />
<field name="ended" type="bool" indexed="true" stored="false" />
Expand All @@ -28,7 +25,7 @@
languages sort names differently. Thus sortname is multiValued. -->
<field name="sortname" type="text" indexed="true" stored="false" multiValued="true" />
<field name="tag" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="type" type="lowercase" indexed="true" stored="true" omitNorms="true" />
<field name="type" type="lowercase" indexed="true" stored="false" omitNorms="true" />
<!-- Holds data for reponse writer -->
<field name="_store" type="storefield" indexed="false" stored="true" />
<!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
Expand All @@ -38,9 +35,6 @@
<copyField source="iso1" dest="iso" />
<copyField source="iso2" dest="iso" />
<copyField source="iso3" dest="iso" />
<copyField source="area" dest="catch" />
<copyField source="alias" dest="catch" />
<copyField source="sortname" dest="catch" />
<copyField source="area" dest="ngram" />
<copyField source="sortname" dest="ngram" />
<!-- field to use to determine and enforce document uniqueness. -->
Expand Down
9 changes: 2 additions & 7 deletions artist/conf/schema.xml
Expand Up @@ -6,15 +6,13 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="alias" type="text_mult_alias_similarity" indexed="true" stored="true" multiValued="true" />
<field name="alias" type="text_mult_alias_similarity" indexed="true" stored="false" multiValued="true" />
<field name="area" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="arid" type="mbid" indexed="true" stored="false" />
<field name="artist" type="text" indexed="true" stored="true" />
<field name="artist" type="text" indexed="true" stored="false" />
<field name="artistaccent" type="keep_accents" indexed="true" stored="false" />
<field name="begin" type="date" indexed="true" stored="false" />
<field name="beginarea" type="text_mult" indexed="true" stored="false" multiValued="true" />
<!-- a "catch all" field used as the default search field -->
<field name="catch" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="comment" type="text" indexed="true" stored="false" />
<field name="country" type="lowercase" indexed="true" stored="false" omitNorms="true" />
<field name="end" type="date" indexed="true" stored="false" />
Expand All @@ -36,9 +34,6 @@
<field name="_version_" type="long" indexed="true" stored="true" />
<copyField source="artist" dest="artistaccent" />
<copyField source="mbid" dest="arid" />
<copyField source="alias" dest="catch" />
<copyField source="artist" dest="catch" />
<copyField source="sortname" dest="catch" />
<copyField source="artist" dest="ngram" />
<copyField source="sortname" dest="ngram" />
<!-- field to use to determine and enforce document uniqueness. -->
Expand Down
14 changes: 7 additions & 7 deletions cdstub/conf/schema.xml
Expand Up @@ -6,16 +6,16 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="added" type="date" indexed="true" stored="true" />
<field name="artist" type="text" indexed="true" stored="true" />
<field name="barcode" type="strip_leading_zeroes" indexed="true" stored="true" omitNorms="true" />
<field name="comment" type="text" indexed="true" stored="true" />
<field name="discid" type="string" indexed="true" stored="true" required="true" />
<field name="added" type="date" indexed="true" stored="false" />
<field name="artist" type="text" indexed="true" stored="false" />
<field name="barcode" type="strip_leading_zeroes" indexed="true" stored="false" omitNorms="true" />
<field name="comment" type="text" indexed="true" stored="false" />
<field name="discid" type="string" indexed="true" stored="false" required="true" />
<!-- id needs to be indexed because it's the unique key -->
<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="ngram" type="ngram" indexed="true" stored="false" multiValued="true" />
<field name="title" type="title" indexed="true" stored="true" required="true" />
<field name="tracks" type="int" indexed="true" stored="true" />
<field name="title" type="title" indexed="true" stored="false" required="true" />
<field name="tracks" type="int" indexed="true" stored="false" />
<!-- Holds data for reponse writer -->
<field name="_store" type="storefield" indexed="false" stored="true" />
<!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
Expand Down
4 changes: 2 additions & 2 deletions editor/conf/schema.xml
Expand Up @@ -6,8 +6,8 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="bio" type="text" indexed="true" stored="true" />
<field name="editor" type="text" indexed="true" stored="true" required="true" />
<field name="bio" type="text" indexed="true" stored="false" />
<field name="editor" type="text" indexed="true" stored="false" required="true" />
<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="ngram" type="ngram" indexed="true" stored="false" multiValued="true" />
<!-- Holds data for reponse writer -->
Expand Down
12 changes: 3 additions & 9 deletions event/conf/schema.xml
Expand Up @@ -6,23 +6,20 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="alias" type="text_mult" indexed="true" stored="true" multiValued="true" />
<field name="alias" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="aid" type="mbid" indexed="true" stored="false" multiValued="true" />
<field name="area" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="arid" type="mbid" indexed="true" stored="false" multiValued="true" />
<field name="artist" type="text" indexed="true" stored="false" multiValued="true" />
<field name="begin" type="date" indexed="true" stored="false" />
<!-- catch is a catch-all field used as the default search field used when no field is specified
in the "Indexed search with advanced query syntax" search field. -->
<field name="catch" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="comment" type="text" indexed="true" stored="false" />
<field name="end" type="date" indexed="true" stored="false" />
<field name="ended" type="bool" indexed="true" stored="false" />
<field name="eid" type="mbid" indexed="true" stored="false" />
<field name="event" type="text" indexed="true" stored="true" />
<field name="event" type="text" indexed="true" stored="false" />
<!-- mbid needs to be indexed because it's the unique key -->
<field name="mbid" type="mbid" indexed="true" stored="true" required="true" />
<field name="name" type="string" indexed="true" stored="true" />
<field name="name" type="string" indexed="true" stored="false" />
<field name="ngram" type="ngram" indexed="true" stored="false" multiValued="true" />
<field name="pid" type="mbid" indexed="true" stored="false" multiValued="true" />
<field name="place" type="text" indexed="true" stored="false" multiValued="true" />
Expand All @@ -35,9 +32,6 @@
<field name="_version_" type="long" indexed="true" stored="true" />
<copyField source="mbid" dest="eid" />
<copyField source="name" dest="event" />
<copyField source="alias" dest="catch" />
<copyField source="artist" dest="catch" />
<copyField source="name" dest="catch" />
<copyField source="name" dest="ngram" />
<copyField source="artist" dest="ngram" />
<!-- field to use to determine and enforce document uniqueness. -->
Expand Down
10 changes: 2 additions & 8 deletions instrument/conf/schema.xml
Expand Up @@ -6,14 +6,11 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="alias" type="text_mult" indexed="true" stored="true" multiValued="true" />
<!-- catch is a catch-all field used as the default search field used when no field is specified
in the "Indexed search with advanced query syntax" search field. -->
<field name="catch" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="alias" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="comment" type="text" indexed="true" stored="false" />
<field name="description" type="text" indexed="true" stored="false" />
<field name="iid" type="mbid" indexed="true" stored="false" />
<field name="instrument" type="text" indexed="true" stored="true" />
<field name="instrument" type="text" indexed="true" stored="false" />
<!-- mbid needs to be indexed because it's the unique key -->
<field name="mbid" type="mbid" indexed="true" stored="true" required="true" />
<field name="ngram" type="ngram" indexed="true" stored="false" multiValued="true" />
Expand All @@ -24,9 +21,6 @@
<!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
or Solr won't start. _version_ and update log are required for SolrCloud. -->
<field name="_version_" type="long" indexed="true" stored="true" />
<copyField source="instrument" dest="catch" />
<copyField source="alias" dest="catch" />
<copyField source="description" dest="catch" />
<copyField source="mbid" dest="iid" />
<copyField source="instrument" dest="ngram" />
<copyField source="alias" dest="ngram" />
Expand Down
20 changes: 7 additions & 13 deletions label/conf/schema.xml
Expand Up @@ -6,26 +6,23 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="alias" type="text_mult_alias_similarity" indexed="true" stored="true" multiValued="true" />
<field name="area" type="text_mult" indexed="true" stored="true" multiValued="true" />
<field name="alias" type="text_mult_alias_similarity" indexed="true" stored="false" multiValued="true" />
<field name="area" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="begin" type="date" indexed="true" stored="false" />
<!-- catch is a catch-all field used as the default search field used when no field is specified
in the "Indexed search with advanced query syntax" search field. -->
<field name="catch" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="code" type="strip_leading_zeroes_mult" indexed="true" stored="false" multiValued="true" />
<field name="comment" type="text" indexed="true" stored="false" />
<field name="country" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="end" type="date" indexed="true" stored="false" />
<field name="ended" type="bool" indexed="true" stored="true" />
<field name="ipi" type="string" indexed="true" stored="true" multiValued="true" />
<field name="label" type="text" indexed="true" stored="true" />
<field name="ended" type="bool" indexed="true" stored="false" />
<field name="ipi" type="string" indexed="true" stored="false" multiValued="true" />
<field name="label" type="text" indexed="true" stored="false" />
<field name="labelaccent" type="keep_accents" indexed="true" stored="false" />
<field name="laid" type="mbid" indexed="true" stored="true" required="true" />
<field name="laid" type="mbid" indexed="true" stored="false" required="true" />
<!-- mbid needs to be indexed because it's the unique key -->
<field name="mbid" type="mbid" indexed="true" stored="true" required="true" />
<!-- copies name exactly as it appears in the database, so it may be diverted into analysis for
"label" and "labelaccent"-->
<field name="name" type="string" indexed="true" stored="true" />
<field name="name" type="string" indexed="true" stored="false" />
<field name="ngram" type="ngram" indexed="true" stored="false" multiValued="true" />
<field name="release_count" type="int" indexed="true" stored="false" />
<field name="sortname" type="text_mult" indexed="true" stored="false" multiValued="true" />
Expand All @@ -39,9 +36,6 @@
<copyField source="name" dest="label" />
<copyField source="name" dest="labelaccent" />
<copyField source="mbid" dest="laid" />
<copyField source="name" dest="catch" />
<copyField source="alias" dest="catch" />
<copyField source="sortname" dest="catch" />
<copyField source="name" dest="ngram" />
<copyField source="sortname" dest="ngram" />
<!-- field to use to determine and enforce document uniqueness. -->
Expand Down
21 changes: 7 additions & 14 deletions place/conf/schema.xml
Expand Up @@ -6,34 +6,27 @@
cores, and since all avaliable field types are linked to each core (for simplicity) we need to
enable per-field similarity in all cores -->
<similarity class="solr.SchemaSimilarityFactory" />
<field name="address" type="text" indexed="true" stored="true" />
<field name="address" type="text" indexed="true" stored="false" />
<field name="alias" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="area" type="text" indexed="true" stored="false" multiValued="true" />
<field name="begin" type="date" indexed="true" stored="true" />
<!-- catch is a catch-all field used as the default search field used when no field is specified
in the "Indexed search with advanced query syntax" search field. -->
<field name="catch" type="text_mult" indexed="true" stored="false" multiValued="true" />
<field name="begin" type="date" indexed="true" stored="false" />
<field name="comment" type="text" indexed="true" stored="false" />
<field name="end" type="date" indexed="true" stored="true" />
<field name="end" type="date" indexed="true" stored="false" />
<field name="ended" type="bool" indexed="true" stored="false" />
<field name="lat" type="float" indexed="true" stored="true" />
<field name="long" type="float" indexed="true" stored="true" />
<field name="lat" type="float" indexed="true" stored="false" />
<field name="long" type="float" indexed="true" stored="false" />
<!-- mbid needs to be indexed because it's the unique key -->
<field name="mbid" type="mbid" indexed="true" stored="true" required="true" />
<field name="ngram" type="ngram" indexed="true" stored="false" multiValued="true" />
<field name="place" type="text" indexed="true" stored="true" required="true" />
<field name="pid" type="mbid" indexed="true" stored="true" />
<field name="place" type="text" indexed="true" stored="false" required="true" />
<field name="pid" type="mbid" indexed="true" stored="false" />
<field name="type" type="lowercase" indexed="true" stored="false" omitNorms="true" />
<!-- Holds data for reponse writer -->
<field name="_store" type="storefield" indexed="false" stored="true" />
<!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
or Solr won't start. _version_ and update log are required for SolrCloud. -->
<field name="_version_" type="long" indexed="true" stored="true" />
<copyField source="mbid" dest="pid" />
<copyField source="place" dest="catch" />
<copyField source="alias" dest="catch" />
<copyField source="address" dest="catch" />
<copyField source="area" dest="catch" />
<copyField source="place" dest="ngram" />
<copyField source="alias" dest="ngram" />
<!-- field to use to determine and enforce document uniqueness. -->
Expand Down