(cjacobson) #1

Can I guarantee the appropriate data type is being indexed by defining
"properties" when defining my _mapping? So, in the below example, even if
the first document to be indexed incorrectly defines "username" as an
OBJECT, that will be the document which fails, instead of all subsequent
documents which define "username" correctly as a STRING.


curl -XPUT '' -d '{
"directory_search" : {
"properties" : {
"state.username" : {"type":"string","store":"yes",
"state.firstname" : {"type":"string","store":"yes",
"state.lastname" : {"type":"string","store":"yes",

(system) #2