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

mikemadison’s picture

I've seen this as well and confirm that it works as described above in 7X1.0

rlmumford’s picture

lalweil: Theres a fix for this in the latest dev of entity module

mikemadison’s picture

Awesome I'll check it out thanks!

Fidelix’s picture

Confirmed this bug.
I have latest entity dev, and this is still the behavior.

jsacksick’s picture

Look at this screenshot, for me it's 1 for Published and 0 for Unpublished....

http://cl.ly/3k3J2h2P180a2i0c300f

Fidelix’s picture

Correcting myself. It seems to work with entity development.

drunken monkey’s picture

Status: Active » Closed (works as designed)
scor’s picture

confirmed this is now working with latest entity-dev. you need to re-index your data.