I would like to add CCK Taxonomy field, any suggest?
Maybe editing text_facets.module in this point (if ($field['type'] == 'text') {)?

Comments

Jackl85’s picture

Title: CCK Taxonomy field » CCK Content Taxonomy (field)

Add link to project: Content Taxonomy
Issue open on Content Taxonomy: #687690: Interface to Faceted Search Module

Jackl85’s picture

Title: CCK Content Taxonomy (field) » Content Taxonomy (Now supported!)
Assigned: Unassigned » Jackl85
Status: Active » Reviewed & tested by the community

Fix it!
Edit text_facets.module in:
if ($field['type'] == 'text') {
with:
if ($field['type'] == 'text' || $field['type'] == 'content_taxonomy') {

Work for me! :)

david lesieur’s picture

Status: Reviewed & tested by the community » Needs review

I haven't tested this yet and it is quite possible that the change may be that simple. However, the change should be reviewed by people other than its author to get marked as "reviewed & tested by the community". A single person does not count as a community. :-) Thanks!

Fanaile’s picture

okie -

I applied the edit that was posted here and so far it does seem to work for me - I haven't received any errors and the search page looks good.

Jackl85’s picture

@David Lesieur
Thanks for suggest, next time I will use "needs review".
There is a "know issue" with this edit.
Work very well with plain taxonomy (all term deeph = 0)

If my taxonomy is like:

Term 1
\ - Term 1.1
  - Term 1.2
   \ - Term 1.2.1
Term 2
\ - Term 2.1
Term 3

Problem:
In Facet search I will see a plain list of term (maybe annoing)
If I select Term 1.2 I see only content with Term 1.2 (and not Term 1.2.1)
I can't fix that problem now, I'm newbie Drupal developer ^^'

zkrebs’s picture

I have applied the small change mentioned in #2 and it works , exposed the content_taxonomy fields in my faceted search environment.