This patch integrates the field with ApacheSolr so that field values can be filtered in facet blocks or returned in queries on the solr index.

CommentFileSizeAuthor
#8 content_taxonomy_apachesolr_6x_2.patch9.17 KBmcarbone
content_taxonomy-apachesolr-integration.patch4.21 KBAnonymous (not verified)

Comments

pwolanin’s picture

subscribe for later

bennos’s picture

subscribing

crea’s picture

subs

mh86’s picture

Is this patch ready to be committed?
I don't have time for setting up Apache Solr and test it myself but if bangpound or someone else can confirm, that the patch is working, I'm going to commit it.

Anonymous’s picture

mh86,

It does the trick for me but it does not support hierarchy at all. If you commit it, don't tie it to a release. I think there's still a few more lines of code to write on this. If you want to hold, I can devote some attention to it later this week or next week.

YK85’s picture

+1 subscribing

xjm’s picture

Status: Needs review » Needs work

Marking "needs work" based on #5.

mcarbone’s picture

StatusFileSize
new9.17 KB

Attached is a patch that supports hierarchy, but:

1) It was written for the 6.x-2.0 branch of apachesolr; and

2) It's dependent on a patch I posted at #831994: apachesolr_search_nested_facet_items doesn't work for non-tid facets.

It probably wouldn't be very tricky to backport it for 6.x-1.0.

rhymeswithcamera’s picture

Hmmm, I am missing something. How can you tell if the patch works? How are Content Taxonomy fields made available for faceted searching - through Apache Solr enabled filters or through code or ...?

I installed the first (non-hierarchy) patch; it ran without any errors. I deleted the index and rebuilt. I flushed the cache (for good measure). Nothing looks or acts different.

I'm running Content Taxonomy 6.x-1.x-dev and Apache Solr 6.x-2.x-dev.

Thanks for your help.

EDIT: Got it figured out. My CT fields are now visible as facets and work properly.

xjm’s picture

Status: Needs work » Needs review