From: Maj, L. <le...@ya...> - 2011-10-24 19:25:45
|
While back we contributed HiddenFilters in searches.ini to allow for limiting all queries to individual units. ; This section allows for adding hidden filters. Each filter will be translated ; to format 'key:"value"' and added by Solr.php as a hidden filter (a facet that ; is always applied but is not seen by the user). This is useful if you use a ; shared Solr index and need to display different subsets in different contexts ; (for example, a union catalog with separate VuFind instances each member). [HiddenFilters] institution = "Yale Center for British Art" This was great, however current VuFind1.2 sitemap index is still based of central university Solr terms and will not limit indexes. We finally are able to implement a better sitemap index and contribute it back to the community. Before completing, some thoughts on how to best do this that would work for the community. Solr TermsComponent does not support getting terms with a query limit. To get around this problem we use select with query options. In sitemap.php we plan to add a condition statement to check for HiddenFilters being enabled in searches.ini. Is this best option? Does anyone have any objections other then the obvious performance hit of using select over terms? Sincerely, Lec |