VuFind

Manipulation of result filters (derived from facets etc.)

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Wishlist
  • Fix Version/s: Wishlist
  • Component/s: Search
  • Labels:
    None

Description

At the moment (pre 1.0RC2) filters (fq parameters) sent to Solr with search requests are directly derived from user interaction (user selecting facet values) on the user interface. There is no easy way to manipulate those filter parameters before they are sent to Solr without hacking VuFind source code. Goal of this issue a feature that allows easy manipulation of filter parameters. We should collect use cases for filter manipulation here to get an overview of requirements before implementing the feature.

Issue Links

Activity

Hide
Till Kinstler added a comment -
Use case: add a static additional filter value to any query, if a specific facet is selected.
William Denton brought this up in an email on vufind-general: http://sourceforge.net/mailarchive/message.php?msg_name=Pine.BSF.4.63.0910061750460.57192%40as2.dm.egate.net
Show
Till Kinstler added a comment - Use case: add a static additional filter value to any query, if a specific facet is selected. William Denton brought this up in an email on vufind-general: http://sourceforge.net/mailarchive/message.php?msg_name=Pine.BSF.4.63.0910061750460.57192%40as2.dm.egate.net
Hide
Till Kinstler added a comment -
This discussion thread on vufind-tech may be relevant for this feature, too:
http://www.nabble.com/Excluding-facets-tt25246056.html#a25246056
Show
Till Kinstler added a comment - This discussion thread on vufind-tech may be relevant for this feature, too: http://www.nabble.com/Excluding-facets-tt25246056.html#a25246056
Hide
Till Kinstler added a comment - - edited
Use case: Adding dynamic filters derived from external sources

We restrict access to parts of our index by applying filters to Solr queries (we have to do so because of license issues). We get user attributes through Shibboleth ("external source", may be any other kind of data source like LDAP, a database or a flat file as well), calculate a user's individual access rights from those attributes (with simple rules like "if user belongs to institution A he may use collection N") and apply filters matching those access rights to each Solr request.
Show
Till Kinstler added a comment - - edited Use case: Adding dynamic filters derived from external sources We restrict access to parts of our index by applying filters to Solr queries (we have to do so because of license issues). We get user attributes through Shibboleth ("external source", may be any other kind of data source like LDAP, a database or a flat file as well), calculate a user's individual access rights from those attributes (with simple rules like "if user belongs to institution A he may use collection N") and apply filters matching those access rights to each Solr request.
Hide
Demian Katz added a comment -
Note that the SearchObject_Solr class (web/sys/SearchObject/Solr.php) contains an addHiddenFilter() method which can be used to filter search results without displaying a selected facet value in the interface. As of this writing, it is only used for an optional feature of the New Items search, but this could be easily exploited to serve other purposes -- it's just a matter of deciding what configurable settings are needed and where to put them.
Show
Demian Katz added a comment - Note that the SearchObject_Solr class (web/sys/SearchObject/Solr.php) contains an addHiddenFilter() method which can be used to filter search results without displaying a selected facet value in the interface. As of this writing, it is only used for an optional feature of the New Items search, but this could be easily exploited to serve other purposes -- it's just a matter of deciding what configurable settings are needed and where to put them.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: