What is An Entity?
...
The example below demonstrates how a location entity is created from source data (Note: The full source and sample output created from the source can be found here: XML File Source).
Code Block | ||
---|---|---|
| ||
"entities" : [ //... { "actual_name" : "Sungai Padi,Narathiwat,Thailand", "dimension" : "Where", "disambiguated_name" : "Sungai Padi,Narathiwat,Thailand", "doccount" : NumberLong(51), "frequency" : 1, "index" : "sungai padi,narathiwat,thailand/location", "geotag" : { "lat" : "6.085833", "lon" : "101.881389" }, "ontology_type": "city", "totalfrequency" : NumberLong(51), "type" : "Location" }, //... ], |
...
Info |
---|
Nesting is not recommended except in cases where nested fields can refer to either primitives or objects. Just use the "dot notation" described above where possible. You can nest entities an arbitrary number of times, provided there is a valid "iterateOver" field specified at every level. You can also make an entity object both specify an entity and contain an array, although this is not recommended. |
Further Reading