Closed (duplicate)
Project:
Apache Solr Search
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
12 Jul 2008 at 17:46 UTC
Updated:
1 Feb 2009 at 17:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
robertdouglass commentedAgree. Checkboxes on the admin page. Tagged for inclusion in 1.0.
Comment #2
pahariwalla commentedHoping that I understand the idea here ...
1) Apachesolr settings has new variable "CCK fields to display as facets". It presents multiple select checkboxes, one for each cck field as returned from apachesolr_cck_fields().
2) apachesolr_block checks against this and only creates a block if the checkbox was checked.
Comment #3
robertdouglass commentedThis looks good. Here are the nits =)
you can make a link to admin/build/block and say something like
Also, the second line has too much indentation.
Please solicit another review from someone else.
Comment #4
JacobSingh commentedI've got one too :)
$cck_facets = variable_get('apachesolr_cck_facets', '');
This should be cck_facets = ('apachesolr_cck_facets', array());
because you are referencing it as an array later, treating it as a string if it is not set will cause an issue.
Comment #5
pahariwalla commentedheh heh .. this is very cool guys. thanks. rampin' up, as they say. will not repeat same mistake twice. will not repeat same mistake twice. file new info. will not repeat same mistake twice.
Also been thinking about default values. Should new cck fields default to "checked" ? Should we have an new option for setting "new fields checked"? Am I beating a dead horse while making even more convoluted inline docs?
(as I recently discovered with cck_nodereference nothing shows up in the selector if you don't check off the node types in settings at the bottom of the page)
I'll post a patch after hearing your thoughts on default.
Comment #6
robertdouglass commented+1 for having all new fields default to checked (preserves current behavior). -1 to adding an option to modify that behavior.
Comment #7
pahariwalla commentedI second that motion - bidding closes at end of day. Right now I've got to drive down to San Leandro to fight a bogus $250 ticket for stopping in a bus stop at the Bart station.. :-[
Comment #8
robertdouglass commentedhehe! Kieran Lal told me about guys he know in the LA area who set their laptops up with voice recognition, and they responded to emails while driving.
Comment #9
pahariwalla commentedA little scary when in incapable "hands". better than an in-depth, live, phone conversation. I do love voice recognition.
byw: I had to look the address up on the web, and when I got there in the nick of time, all I saw was a monster juvenial detention center with massive barbed-wire scary fences that keep kids inside and a huge empty parking lot with a small section that had cars all fenced in to keep kids out. So I missed my hearing, and hit rush hour traffic on the way home... bummer all the way around.
meanwhile... back to Funland
Comment #10
pahariwalla commentedPatch includes:
Style question - should:
be written:
since the variable is not used again?
Comment #11
janusman commentedPatch is failing for current checkout of DRUPAL-5 branch.
Comment #12
pahariwalla commentedLet's try that again... new patch created against current dev:
// $Id: apachesolr.module,v 1.1.2.38 2008/09/24 18:07:54 robertDouglass Exp $thanks
Comment #13
asak commentedsubscribing (and will test...).
Comment #14
JacobSingh commentedI made a slight modification to this patch as currently it would not work if someone added a new CCK field without going back to the settings page.
Comment #15
JacobSingh commented@peter: how is this affected by the new facet handling? Should this be incorporated into a larger framework?
Comment #16
pwolanin commented@Jacob - yes, I think we should postpone/incorporate this iossue into the larger issue of centralizing facet block handling. With that done, at least the performance aspects of this will no longer be a concern. We will still have to figure out the best UI.
Comment #17
David Lesieur commentedHas this been handled in #339467: centralize/register node facets blocks ?
Comment #18
JacobSingh commentedIndeed