I've done some significant refactoring of the patch to reduce redundancy, centralize some logic, expand a few comments, and fix some minor bugs. This is such a big change that it's possible that I've broken something in the process, so I'm not deleting the old patch yet. Please let me know what you think!
Demian Katz
added a comment - I've done some significant refactoring of the patch to reduce redundancy, centralize some logic, expand a few comments, and fix some minor bugs. This is such a big change that it's possible that I've broken something in the process, so I'm not deleting the old patch yet. Please let me know what you think!
Oliver Goldschmidt
added a comment - A small improvement of Demians latest patch: it allows to set preferences for shards. So one can choose which shards should be cheked by default.
If the indices are not completely identical and in searchspecs.yaml fields are defined, which are not in all of the indices used for search, the query will return 0 results.
Another list should be introduced to exclude fields from search when certain indices are enabled.
Oliver Goldschmidt
added a comment - If the indices are not completely identical and in searchspecs.yaml fields are defined, which are not in all of the indices used for search, the query will return 0 results.
Another list should be introduced to exclude fields from search when certain indices are enabled.
A fix to the "incompatible fields in searchspecs.yaml" problem was committed as of r3628. Note that I don't encourage using sharding with incompatible schemas, since it can lead to weird results, and this isn't really what Solr sharding was designed to do... but if you really want to do it, now you have the ability to!
Demian Katz
added a comment - A fix to the "incompatible fields in searchspecs.yaml" problem was committed as of r3628. Note that I don't encourage using sharding with incompatible schemas, since it can lead to weird results, and this isn't really what Solr sharding was designed to do... but if you really want to do it, now you have the ability to!