Closed (works as designed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2012 at 11:14 UTC
Updated:
17 May 2012 at 15:34 UTC
Using Solr Integration as well, we've indexed Node: Status, but when using views to filter out Published/Unpublished results they are the wrong way round. (Filtering out unpublished results shows only unpublished results).
I've debugged this a little and found out that Node: Status is using SearchApiViewsHandlerFilterOptions rather than SearchApiViewsHandlerFilterBoolean. Also the options defined in definition['options'] are the wrong way round.
$this->definition['options'] = array(
0 => 'Published',
1 => 'Unpublished',
);
How could we get the field to operate as a boolean?
Comments
Comment #1
mikemadison commentedI've seen this as well and confirm that it works as described above in 7X1.0
Comment #2
rlmumfordlalweil: Theres a fix for this in the latest dev of entity module
Comment #3
mikemadison commentedAwesome I'll check it out thanks!
Comment #4
Fidelix commentedConfirmed this bug.
I have latest entity dev, and this is still the behavior.
Comment #5
jsacksick commentedLook at this screenshot, for me it's 1 for Published and 0 for Unpublished....
http://cl.ly/3k3J2h2P180a2i0c300f
Comment #6
Fidelix commentedCorrecting myself. It seems to work with entity development.
Comment #7
drunken monkeyComment #8
scor commentedconfirmed this is now working with latest entity-dev. you need to re-index your data.