Yesterday I got apachesolr set up and working on my site and it was working well. Everything indexed and I had faceted search blocks on my search page. However, my client had a requirement for showing images in the search results, so I added ds, nd, and nd_contrib to the site, so that I could build the search results using nd. I enabled those modules and worked on making the search results look correct. However... I later noticed that there seemed to be some issues with how solr was working. Most of my facet blocks disappeared and running facet-only (* wildcard) searches was causing my browser to crash. I also noticed that cck field filter options previously available on the enabled filters page disappeared.
This morning I disabled all the ds and nd modules. My cck field filter options reappeared and were still checked. I enabled ds and checked the enabled filters page and the cck fields were still there. I enabled nd and the fields were still there. When I enabled nd_search, they disappeared. While I can't be certain that this is also responsible for the issues with the facet-only searches crashing my browser yet (re-indexing 7k nodes takes a while), this leads me to suspect that they are related, since I had previously had no issues with it.
One thing I am wondering is about the tm_node that is inserted into SOLR's index. That is one thing that changes when you turn on nd_search. In this case, the nodes being indexed are extremely complex with no fewer than 40 fields, many containing multiple pieces of data. I am wondering if maybe this has something to do with it. I'll file a separate issue for the performance issues, but I thought I would mention it here because it may be related somehow.
Any help is appreciated.
Sean Adams-Hiett
Web Geeks For Hire
www.webgeeksforhire.com
Comments
Comment #1
swentel commentedWhich version of apachesolr are you using. It's been a while since I tested all functionality, so I need to know the exact setup to replicate the issue.
Comment #2
swentel commentedComment #3
pyrello commentedI am using 6.x-2.0-beta3 and Revision 22 of the php library (whatever the most current version is). Please let me know if you need any more information and thanks for the quick response!
Sean Adams-Hiett
Web Geeks For Hire
www.webgeeksforhire.com
Comment #4
samgreco commentedExactly the same here. My lovely search layout disappears when I disable ND-Search. But my filter for the CCK field disappears when I enable it. I am using Apachesolr 6.x-2.x-dev and Node displays & Contributions 6.x-2.4.
Comment #5
samgreco commentedWell, interestingly, I just enabled ND-CCK and ND-Search and I have my display AND the "Filter by" block now. Not sure what I did differently, but it seems to be working now.
I will have to see what happens of I add new values to the CCK select list at some point.
Comment #6
samgreco commentedMore:
If I re-index ApacheSolr, I lose my filter. But there seems to be a work around:
Disable ND-Search and CCK Field Indexer
Delete the Apachesolr index
Re-Index
Enable ND-Search and CCK Field Indexer
Obviously this is not a permanent solution. But it is working thus far. I have about 1000 products/nodes currently so the reindex is workable. But for larger databases this may not be a reasonable work around.
Comment #7
samgreco commentedNow the filters are disappearing again, seemingly on their own. My guess is that a cron run did it. Whenever there is an indexing while ND Search is on, it cause the CCK based filter to dissapear.
Comment #8
xtfer commentedND Search has had a bug fix to the code which retrieves search results, which may fix this issue. Please reopen if it turns up again.
Comment #9
nicholas.alipaz commentedI too am receiving this issue with apachesolr-6.x-1.6 (from acquia) and nd_contrib-6.x-2.x. The two fields that I have noticed do not seem to get indexed are CCK nodereference and date fields.
I added each of them to my search index build mode and my search results build mode. They are not filterable, nor do they show within the search results page when searching on the site.
Comment #10
xtfer commentedCan you check that you are actually indexing those fields with apache_solr when display suite is NOT enabled?