Upgrading apachesolr to 7.x-1.2 on my test enviroment broke my facets or i failed to reconfigure it.
In particular the blocks for cck fields with term reference displayed the empty text.
A facet of a numeric field showed and worked fine, including the use of facet slider.

Reverting to 7.x-1.1 made the blocks and filters work again without requiring any further action.
Had no luck with cleaning the cache (disabled), requeuing, reindexing or remaking the index.
Also tried reinstalling the apachesolr framework, apachesolr search, apachesolr views and facetapi, to no avail.

This was entirely silent, no error messages or watchdog logs were seen.
Do not know if the problem may reside in the framework module or apachesolr views 7.x-1.0-beta2.
Release notes of apachesolr 7.x-1.2 are here: http://drupal.org/node/1967140
(it lists several patches and fixes, including a mention to facet modules)

My setup is a node with an embedded view which uses entity_id to display the teasers.
Facet blocks on that node worked out of the box, set them at admin/config/search/apachesolr/settings/solr/facets and assigned the block to the sidebar region.

Feel free to change to bug report if need.

Comments

torgospizza’s picture

I had this same issue, but all it took was a cache clear (drush cc all) and my facets came back.

EDIT: Spoke to soon. After a refresh or two, my facets aren't showing up. I'll dig a bit and see if I can get them to come back and stay.

dabepuga’s picture

I have the same problem since installing the update. A filter by field of type taxonomy_term_reference is empty now.
The name of the filter is now "is_field_xyz", before it was "im_field_xyz". Other filter of type taxonomy_term_reference still have the name "im_field_xyz" and are working. Don't know why this name changed. Does anyone have a solution?

torgospizza’s picture

Oddly enough I'm not seeing the problem anymore - all my facets are there and accounted for. I did have to re-index my content a couple times, and ran cron - all seems to be well. Very strange.

EDIT May 1: Spoke too soon. Even with caching disabled, the facet blocks appear once, and then on page refresh, they disappear. This appears to be happening on an Acquia server, though, and not my local setup. My initial idea is that it's something server-related, possibly a schema problem, but I have yet to find out for sure. I will dig more and see if reverting to a previous version of FacetAPI helps.

torgospizza’s picture

It appears my issue is related to Views caching. I don't think this affects search pages, but at this point seems to affect solr-based Views that have caching turned on. WIll be digging deeper soon - but try to see if the issue goes away if you turn caching for that view off.

Daniel Schaefer’s picture

I experienced the exact same issue. Downgraded to Solr 7.x-1.0 made the disappeared facets display again.

Not sure if this is a bug of Facet API or Solr integration module. Hoping for a fix anyway.

Daniel Schaefer’s picture

Priority: Normal » Major

Changing this to major since it stopps some of my facets from working.

cpliakas’s picture

Category: support » bug

Hm. Interesting issue.

Is someone able to provide bullet-list steps to reproduce on a clean install of Drupal? It would be great to replicate this locally in order to get a grasp on what is going on, then we can determine where the problem lies.

Thanks,
Chris

nick_vh’s picture

Project: Facet API » Apache Solr Search
Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Closed (duplicate)

This is a duplicate of #1984664: Single-valued taxonomy field facets disappear after upgrading from 7.x-1.1 - please try that patch there and try again. It might be that you need to reindex and reconfigure the facet. We've been indexing taxonomy terms wrongly for up until 1.2.