I have a json document having 50 properties.
Each property has name-value pair.
Out of 50 Properties, I want to :
1). Index 10 fields i.e. name-values
2) Store 20 fields (including 10 indexed above)
3). Dont want to store and index rest of the fields.
Can someone help me how to define the mapping for this?
{
"tweet" : {
"properties" : {
"message" : {
"type" : "string",
"store" : "yes",
"index" : "analyzed",
"null_value" : "na"
}
}
}
}
You have to play with index and store options.
I have a json document having 50 properties.
Each property has name-value pair.
Out of 50 Properties, I want to :
1). Index 10 fields i.e. name-values
2) Store 20 fields (including 10 indexed above)
3). Dont want to store and index rest of the fields.
Can someone help me how to define the mapping for this?
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.