|
Bess Sadler made changes - 17/Jul/09 12:40 PM
Bess Sadler made changes - 24/Jul/09 03:43 PM
Bess Sadler made changes - 31/Jul/09 03:19 PM
Bess Sadler made changes - 31/Jul/09 03:29 PM
Jessie Keck made changes - 11/Sep/09 01:00 PM
Bess Sadler made changes - 23/Oct/09 12:25 PM
Bess Sadler made changes - 23/Oct/09 12:25 PM
[
Permalink
| « Hide
]
Jessie Keck added a comment - 23/Oct/09 04:25 PM
When I commented this out and ran Stanford's local tests our hierarchical facet tests failed. This may or may not be required for hierarchical facets but more investigation needs to be done.
Naomi Dushay made changes - 30/Oct/09 12:45 PM
Jessie Keck made changes - 08/Jan/10 02:20 PM
Naomi Dushay made changes - 05/Apr/10 12:08 PM
Jonathan Rochkind made changes - 02/Jun/10 04:55 PM
I want a way that the BL app can send facet.fields OR not, depending on how configured.
Looking at blacklight_config.rb, it kind of looks like it's already supposed to work that way -- I thought it already DID work that way. But it doesn't. The confusing thing is that we have two parallel structures that deal wtih Solr parameters. Rsolr::Ext and Blacklight itself (largely in SolrHelper#solr_search_params). And there are two places facets (among other things) are configured, apparently duplicatedly, corresonding to these two structures: For Blacklight SolrHelper#solr_search_params we have Blacklight.config[:facet], in initializer. For Rsolr::Ext, we have SolrDocument.default_params[:search][:facets][:fields], also configured in an initializer. So we actually have a list of facets in two places. I _thought_ that simply emptying out SolrDocument.default_params[:search][:facets][:fields] would prevent BL from sending facet.fields. But it does not. Because SolrHelper#solr_search_params is still using the Blacklight.config to send facet.fields. So.... I think if I _stop_ SolrHelper#solr_search_params from doing that, then RSolr::Ext will STILL send facet.field values based on SolrDocument.default_params. So you will be able to have them sent or not based on that config. It's a bit confusing to have two different places setting params for solr, but that's kind of the architecture we've got right now, so to address this ticket, still leaving flexibility, without a major re-architecting of BL... that seems the simplest way.
Jonathan Rochkind made changes - 14/Jun/10 12:19 PM
Okay, my solution relied on thinking that RSolr itself would still use SolrDocument.default_params[:search][:facets][:fields].
That does not seem to be the case. I need to investigate further look into the RSolr code, perhaps talk to Matt about what is intended RSolr behavior, perhaps need to patch Rsolr.
Jonathan Rochkind made changes - 19/Aug/10 05:10 PM
Jonathan Rochkind made changes - 19/Aug/10 05:11 PM
DONE! As a side-effect of the more general
Jonathan Rochkind made changes - 19/Aug/10 05:11 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||