do not store subfield *_coordinate + make all num-fields being docvalues

pull/27/head
sixcooler 10 years ago
parent 194df613de
commit 646afe9183

@ -79,8 +79,8 @@ public enum CollectionSchema implements SchemaDeclaration {
// optional but recommended // optional but recommended
coordinate_p(SolrType.location, true, true, false, false, false, "point in degrees of latitude,longitude as declared in WSG84"), coordinate_p(SolrType.location, true, true, false, false, false, "point in degrees of latitude,longitude as declared in WSG84"),
coordinate_p_0_coordinate(SolrType.coordinate, true, true, false, false, false, "automatically created subfield, (latitude)"), coordinate_p_0_coordinate(SolrType.coordinate, true, false, false, false, false, "automatically created subfield, (latitude)"),
coordinate_p_1_coordinate(SolrType.coordinate, true, true, false, false, false, "automatically created subfield, (longitude)"), coordinate_p_1_coordinate(SolrType.coordinate, true, false, false, false, false, "automatically created subfield, (longitude)"),
ip_s(SolrType.string, true, true, false, false, false, "ip of host of url (after DNS lookup)"), ip_s(SolrType.string, true, true, false, false, false, "ip of host of url (after DNS lookup)"),
author(SolrType.text_general, true, true, false, false, true, "content of author-tag"), author(SolrType.text_general, true, true, false, false, true, "content of author-tag"),
author_sxt(SolrType.string, true, true, true, false, false, "content of author-tag as copy-field from author. This is used for facet generation"), author_sxt(SolrType.string, true, true, true, false, false, "content of author-tag as copy-field from author. This is used for facet generation"),
@ -263,7 +263,7 @@ public enum CollectionSchema implements SchemaDeclaration {
this.omitNorms = omitNorms; this.omitNorms = omitNorms;
this.searchable = searchable; this.searchable = searchable;
this.comment = comment; this.comment = comment;
this.docValues = (type == SolrType.string || type == SolrType.date); this.docValues = (type == SolrType.string || type == SolrType.date || type.name().startsWith("num_"));
// verify our naming scheme // verify our naming scheme
String name = this.name(); String name = this.name();
int p = name.indexOf('_'); int p = name.indexOf('_');

@ -117,7 +117,7 @@ public enum WebgraphSchema implements SchemaDeclaration {
this.omitNorms = omitNorms; this.omitNorms = omitNorms;
this.searchable = searchable; this.searchable = searchable;
this.comment = comment; this.comment = comment;
this.docValues = (type == SolrType.string || type == SolrType.date); this.docValues = (type == SolrType.string || type == SolrType.date || type.name().startsWith("num_"));
// verify our naming scheme // verify our naming scheme
String name = this.name(); String name = this.name();
int p = name.indexOf('_'); int p = name.indexOf('_');

Loading…
Cancel
Save