Show
Ignore:
Timestamp:
12.12.2017 19:36:16 (3 years ago)
Author:
ak19
Message:

Fix to solr facets: if there are 2 values assigned for a metadata of a doc, e.g. a doc's subjects meta is set to youth, and another subjects meta for that doc is set to food, it used to appear under solr's subjects facet as a new, single term called 'youth food'. But now each distinct value for that meta is indexed as a separate field with a separate value, despite the same field name (the meta, e.g. subjects). In order for this to work, the schema.xml.in, which gets copied into a solr col's etc/conf folder, needed to specify that the dynamic field for by* is multivalued (previously set to false, now true) to allow many field elements for the same field name. Tested solr-jdbm-demo (and my simple test case). Nothing that wasn't already broken in faceted searching of solr-jdbm-demo appears broken here, but results are still different, which may be expected since there's no accumulated meta value for a doc's metadata anymore.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/conf/schema.xml.in

    r31859 r32098  
    250250 
    251251   <!-- dynamic field for sort/facet fields, which are strings by default. ie not tokenised --> 
    252    <dynamicField name="by*" type="string" indexed="true" stored="false" multiValued="false" /> 
     252   <dynamicField name="by*" type="string" indexed="true" stored="false" multiValued="true" /> 
    253253 
    254254   <!-- uncomment the following to ignore any fields that don't already match an existing