curl -XPUT localhost:9200/twitter -d ' // <--- 'twitter' index
{
"mappings": { <--- 'mappings' reserved keyword
"tweet": { <--- 'tweet' type
"properties": { <--- 'properties' reserved keyword
"message": { <--- 'message' is the name of the field in your doc
"type": "string"
}
}
}
}
}'
The alternative structure is to define the index and type in the URI, which lets you drop the 'mapping' and type name from the body:
curl -XPUT localhost:9200/twitter/_mapping/tweet/ <-- 'twitter' index, 'tweet' type
{
"properties": { <--- 'properties' reserved keyword
"message": { <--- 'message' is the name of the field in your doc
"type": "string"
}
}
}
So, getting back to your question, it looks like your request is somewhere in the middle. You've specified the index but not type in the URI, but have not specified 'mappings' or the type in the body.
To answer your actual question, the lib_entite string refers to a field name which is being mapped
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.