Closed acurley closed 10 years ago
Although Sorlizer::FieldMapper#extract_type assigns the type to boolean when the value is the Ruby FalseClass, Solrizer.insert_field does not add that boolean to the document.
doc = Hash.new Solrizer.insert_field(doc, 'foo', false) doc == {}
I believe the behavior ought to be:
doc = Hash.new Solrizer.insert_field(doc, 'foo', false) doc == {'foo_bsi' => false}
Currently the specs only cover if the boolean is TrueClass.
I will submit a pull request shortly.
I think this might be because we don't have a default descriptor for boolean. See Solrizer::DefaultDescriptors
Solrizer::DefaultDescriptors
Although Sorlizer::FieldMapper#extract_type assigns the type to boolean when the value is the Ruby FalseClass, Solrizer.insert_field does not add that boolean to the document.
I believe the behavior ought to be:
Currently the specs only cover if the boolean is TrueClass.
I will submit a pull request shortly.