- Issue created by @Rob230
- 🇩🇪Germany mkalkbrenner 🇩🇪
When indexing content, if a boolean field doesn't have a value on the node (i.e. it's null) then this should be indexed as false in Solr.
This expectation is wrong. Null means that the field is not stored in the index!
You need to write an update hook that updates your existing code to set the field value to false.
But that's standard Drupal. - Status changed to Fixed
about 2 years ago 9:20am 15 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.
That doesn't make any sense.
Why wouldn't you just be able to filter on: Not equal to - True?
- Status changed to Fixed
about 6 hours ago 12:54pm 27 June 2025 - 🇩🇰Denmark ressa Copenhagen
Just adding a comment that I also saw a slightly strange behaviour, where a Boolean field was added to the index, but not present after re-indexing. I tried changing Type to String, and some other stuff, but then deleted and added the field again, and this time it got indexed as expected, with
bs_field_main_image:true,
¯\_(ツ)_/¯