Hi All,
I have some basic questions regarding the Multiple Index Types. Currently
we have a single Index and the Document we are creating are becoming bigger
and bigger.
Ex:
"Employee" : {
"type" : "object",
"properties" : {
"id" : {"type" : "integer",
"store":"yes"},
"name" : {"type" : "string",
"store":"yes", "index":"not_analyzed"}
....
...
"auditlog" :{
"id" : {"type" : "integer",
"store":"yes"},
"text" : {"type" : "string",
"store":"yes", "term_vector" : "with_positions_offsets"},
"modification_date" : {"type" :
"date", "store":"yes", "index" : "not_analyzed"},
"modified_by" : {"type" : "integer", "store":"yes", "index" :
"not_analyzed"}
}
}
}
Now as we keep adding more and more sub properties for Employee the
document is growing and more over there can be hundreds of entries for
auditlog.
When we perform a search on auditlog property for the match we get the
"Employee" document as search hit and how do we know which auditlog entry
matched the criteria ?? Does the search return the id of the matched
auditlog as well
The solution i can think of is to create an index type for audit logs .
Is this the right approach ? Any comments..
Thanks
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.