As per a conversation with @pwolanin on IRC, there might be instances where a searcher is indexing multiple entities, either Drupal or not. Therefore it would be beneficial for each adapter to be associated with multiple types in an array as opposed to confining them to a single type.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cpliakas’s picture

Note that the bundle dependency plugin has some assumptions surrounding the type that need to be broken.

cpliakas’s picture

Status: Active » Postponed
cpliakas’s picture

Category: feature » task
Priority: Normal » Major
Status: Postponed » Active

Marking as active. We need to maintain backwards compatibility for this change so that we don't have to synchronize releases with the other backends. This means that the adapter will have both "type" and "types" keys.

cpliakas’s picture

Issue tags: +7.x-1.0-beta4 blocker

Marking as a beta4 blocker.

cpliakas’s picture

Adding new tag to track backwards compatible API changes. Legacy code should be removed when the module goes 1.0.

cpliakas’s picture

Issue tags: -7.x-1.0-beta4 blocker

Changed my mind. There are more important fixes that should be released ASAP.

cpliakas’s picture

Status: Active » Needs review
FileSize
3.03 KB

First crack at resolving this. The known issue is that the bundle is not entity aware. We really need facets that contain bundles a way to identify themselves as such.

cpliakas’s picture

Webchick says jump, I say "how high?". http://www.webchick.net/node/89

cpliakas’s picture

Status: Needs review » Fixed
das-peter’s picture

Status: Fixed » Needs review
FileSize
456 bytes

Just came across an issue while playing around with the facet_api <-> search_api integration.
The code for the legacy support of the type key deletes the whole info array.
Attached patch fixes this.

cpliakas’s picture

Status: Needs review » Reviewed & tested by the community

Oh boy. Great catch! Looks good to me.

cpliakas’s picture

Status: Reviewed & tested by the community » Fixed
FileSize
43.63 KB

Committed at 5be7a86.

Congrats on becoming the 5th committer to Facet API!

Thanks,
Chris

Automatically closed -- issue fixed for 2 weeks with no activity.