Skip to content

Commit

Permalink
mapping documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik committed Sep 2, 2014
1 parent 2ef352d commit c32b262
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,47 @@ For advanced mapping ideas look here:
* https://github.com/salyh/elasticsearch-river-imap/issues/4
* https://github.com/salyh/elasticsearch-river-imap/issues/13

<h3>Advanced Mapping Example (to be set manually using "type_mapping")</h3>
```json
{
"mail":{
"properties":{
"textContent":{
"type":"langdetect"
},
"email":{
"type":"string",
"index":"not_analyzed"
},
"subject":{
"type":"multi_field",
"fields":{
"text":{
"type":"string"
},
"raw":{
"type":"string",
"index":"not_analyzed"
}
}
},
"personal":{
"type":"multi_field",
"fields":{
"title":{
"type":"string"
},
"raw":{
"type":"string",
"index":"not_analyzed"
}
}
}
}
}
}
```

<h3>Content Example</h3>
```json
{
Expand Down

0 comments on commit c32b262

Please sign in to comment.