On Tue, Sep 29, 2015, at 03:38 PM, Dan Bolser wrote: > Hi, > > I'm using sharding 'off label' to integrate data from various remote > sites > running a common schema. > > One issue is that the remote sites sometimes use synonyms of the allowed > terms in a given field. i.e. we specify that a certain field may only > carry > the values x, y, and z, but the remote indexes decide to use X, Y, and Z > instead. > > In my 'hub' (the server configured to query over all shards), can I > configure a mapping such that the facet only shows x, y and z, instead of > x, X, y, Y, z, and Z? > > I'm not sure how a facet selection would 'magically' filter on the list > of > all synonyms defined in the mapping. > > I should have defined this field as an enumeration, but I think the cat's > out of the bag now!
I'm not sure there's anything you can do here (without a substantial programming effort) other than add a layer in front of Solr that adds x+X, y+Y and z+Z. As such, Solr doesn't have an enumeration data type - you'd have to just use a string field and enforce it outside of Solr. Upayavira