I am running Drupal 6.20, PHP 5.3, and the latest versions of Apache Solr and Apache Solr Facet Builder.
I have followed the instructions in the README for creating a Facet view, but there is no Facet block appearing on my block admin page. In case I'm doing something boneheaded, here are the exact steps I'm following:
1. Create a new view of type 'Node'
2. Set some standard filters on the 'Default' view, and rename 'Default' to 'Computed Facet'
3. Change the view display style to 'Node -> Full Node' since I don't want to define specific fields to show in the view.
4. Create a new display of type 'Facet', with some additional filters. In my case, these were computed values between 1 and 5.
5. Rename the 'Facet' display to '1 - 5'
6. Repeat steps 4 & 5 for a few more value ranges (e.g. '6 - 10', '11 - 15')
7. Save the view
Now I go to my blocks administration page, but nothing is there. I've check the blocks table in my database, and again - nothing. I've also tried flushing caches, running Drupal updates, rebuilding my solr index, repeating the above for a view of type 'ApacheSolr Node', and completely re-installing the module. I can't make anything work.
Any help would be greatly appreciated.
Comments
Comment #1
bryangullan commentedHave you enabled that filter in the apachesolr config settings page (/admin/settings/apachesolr/enabled-filters)? I overlooked that at first
Bryan
Comment #2
butler commentedI had a lot of trouble with this as well - this is not well documented, support requests are not often replied to, and if you don't set your View up/do everything exactly right, as you note there is just no result. That makes it kind of difficult to troubleshoot... a few questions/observations from my own process/experience (keep in mind that some of this may be off-base as I was floundering around with this for weeks before I got it actually to do something, my recollection may be flawed) -
- did you create a facet display and override defaults in the facet display?
- I found that my facet display had to exactly mimic all available settings of my default display with the exception of filters, but with overridden values.
- one must rebuild the search index before new facets become available
- just because a facet shows up in the list of enabled filters, does not mean it is viable - if it is not, there will be no error but it will not show up as a block
In addition, once one has successfully created a facet with a given View, there is little resemblance to the behavior of that View reflected in the behavior of the facet (in other words, for me anyway, Views fields I set up which displayed properly in the View don't show up in search results - only a link to the node from the node title - and there seems to be no way to control how search results display - which may have as much or more to do with the Apache SOLR Search Integration module than with this one) (could also have to do with my node type, which is Audio) and no documentation I could find re: customizing access to the facet (i.e. more flexible navigation on the Search page among facet displays generated by a given View). So far I have wound up creating a menu using the full path to each facet (something about Apache SOLR Search Integration or related module seems to choke on using internal Drupal paths in the menu system). Would be great if there were some way to generate menu-like lists of links to facets dynamically.
Ultimately though, this module is a really great start. I am pretty sure with more advice/documentation a lot more could be accomplished with this module by end users
I, for one, would be happy to collaborate on documentation if I could have consistent and meaningful back-and-forth with the dev to make sure I'm getting it right.
Comment #3
kristi wachter commentedAre you still having this problem? I'm wondering if the release on Feb. 24 may have helped.
One thing I've found helpful for troubleshooting:
On the Blocks page (http://www.example.com/admin/build/block) , click the Configure link for each of your blocks (if you can get the blocks to show up on this page).
On the Configure page, you'll see Block Specific Settings. While testing, set "Always show child facets" to Yes, and set "Include a facet for missing" to Yes.
When I did this, I was able to get one of my missing facet blocks to at least show up on the search results page - it showed that all the results in the [missing] category, but at least I could see the block and continue troubleshooting from there.
Comment #4
brycesenz commentedI tried the advice of posts 1 & 2, but was still unable to get the Facet blocks to show up. I ended up just writing a custom facet module for decimal/numeric facets that I needed on my site, so I no longer use this module.
Comment #5
lucasvm commentedIm having a same problem, but i can see the blocks but not working well, im mean i see the counter of result but not the same...for example..
it says
Block Name
(11)
Instead of
Block Name
Alquiler(10)
Venta(1)
Why?
In my view preview i can see it well...any ideas?