Permalink
Browse files

Don't default {type: boolean} to include {null_value: 0}

  • Loading branch information...
1 parent f501fb4 commit 0f75446068e129a7d0b8c769cab627d00a3c4f2b @clintongormley committed Nov 22, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 lib/Elastic/Model/TypeMap/Base.pm
@@ -420,11 +420,6 @@ sub _fixup_mapping {
delete $defn->{analyzer}
if $defn->{index_analyzer} && $defn->{search_analyzer};
- # make 'undef' a false value for boolean fields
- $defn->{null_value} = 0
- if $defn->{type} eq 'boolean'
- and not exists $defn->{null_value};
-
return $defn;
}

0 comments on commit 0f75446

Please sign in to comment.