We have certain documents stored across multiple types with translated
values, for example, US and ES types has same document but with different
values in title fields.
Example:
US:
{
"title":"Manning: Spring in Action, Third Edition"
}
I dont see any direct way to do this from the query.
The way i have in my mind goes like this
Identify duplicates while indexing. and mark the duplicate feed as
duplicate. A field names "isDuplicate" : "true/false" would be the best.
While doing search filter out all duplicates.
If the type name is not very important to you , i would advice to store the
type name as a separate field and store all documents on the same type.
This way , you can make the indexing of duplicate elements atmoic using
upserts -
We have certain documents stored across multiple types with translated
values, for example, US and ES types has same document but with different
values in title fields.
Example:
US:
{
"title":"Manning: Spring in Action, Third Edition"
}
Thanks Vineet,
Well, I wanted to search across the types, i.e US and ES but only return
one document not 2.
The problem with the approach you suggested is that search is then
limited to documents with isDuplicate=true/false
On Friday, September 5, 2014 2:46:20 AM UTC-5, vineeth mohan wrote:
Hello Anand ,
I dont see any direct way to do this from the query.
The way i have in my mind goes like this
Identify duplicates while indexing. and mark the duplicate feed as
duplicate. A field names "isDuplicate" : "true/false" would be the best.
While doing search filter out all duplicates.
If the type name is not very important to you , i would advice to store
the type name as a separate field and store all documents on the same type.
This way , you can make the indexing of duplicate elements atmoic using
upserts - Elasticsearch Platform — Find real-time answers at scale | Elastic
Thanks
Vineeth
On Fri, Sep 5, 2014 at 11:00 AM, Anand Natarajan <anand...@gmail.com
<javascript:>> wrote:
We have certain documents stored across multiple types with translated
values, for example, US and ES types has same document but with different
values in title fields.
Example:
US:
{
"title":"Manning: Spring in Action, Third Edition"
}
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.