VuFind

Use multiple indices for search

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1
  • Component/s: Search
  • Labels:
    None

Description

It might be helpful to use distributed search from Solr to use several indices at once for one query.

Activity

Hide
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!
Show
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!
Hide
Demian Katz added a comment -
I have removed the older patch now that the new one has Oliver's approval. Further comments are welcome!
Show
Demian Katz added a comment - I have removed the older patch now that the new one has Oliver's approval. Further comments are welcome!
Hide
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.
Show
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.
Hide
Demian Katz added a comment -
This new functionality has been added to the trunk as of r3038. See http://vufind.org/wiki/using_solr_shards for documentation.
Show
Demian Katz added a comment - This new functionality has been added to the trunk as of r3038. See http://vufind.org/wiki/using_solr_shards for documentation.
Hide
Oliver Goldschmidt added a comment -
Correction
Show
Oliver Goldschmidt added a comment - Correction
Hide
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.
Show
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.
Hide
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!
Show
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!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: