Closed (fixed)
Project:
Search API Database Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2013 at 10:26 UTC
Updated:
17 Jun 2013 at 20:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
drunken monkeyThanks for reporting!
Thinking about it, it's clear that this issue will pop up in the situation you describe, and I also could reproduce it. I think I had this discussion already once and I feared that just switching to
LEFT JOINwould break other things in unexpected places.However, trying it out, everything seems to keep working and (along with #1863672-6: Multiple content in the search result, when using multiple terms to filtering) the bug seems to be fixed. Please test out the attached patch to see if it also works for your use case!
(By the way, I think this will also occur for single-valued optional fields.)
Comment #2
francoud commentedSeems that this patch also solves a problem that I had using Views search api integration, when sorting by a field that not all content types had.
https://drupal.org/node/2010084Comment #3
bago commentedpatch in #1 works for me.
Comment #4
drunken monkeyExcellent, thanks for testing!
Committed.