we have two entities: 'Item' and 'ItemDescription'.
the 'Item' has two properties: 'id' and 'isActive'
the 'ItemDescription' has three properties: 'id', 'title' and 'item_id'
is there a way to implement the following scenarios?
when searching for text contained in ItemDescription.title, we would like
to let elasticsearch return the 'Item' entities of the found
'ItemDescription' entities
return only 'Item' entities where Item.isActive = true
we have two entities: 'Item' and 'ItemDescription'.
the 'Item' has two properties: 'id' and 'isActive'
the 'ItemDescription' has three properties: 'id', 'title' and 'item_id'
is there a way to implement the following scenarios?
when searching for text contained in ItemDescription.title, we would like to let elasticsearch return the 'Item' entities of the found 'ItemDescription' entities
return only 'Item' entities where Item.isActive = true
the reason we try to achieve this scenario:
we have multilanguage support in our system.
so the user can create an item and add multiple descriptions for it in
different languages.
so we split the textual description into a seperate entity ItemDescription.
this should allow us to find the item no matter in what language the user
searches for it.
maybe this solution to support multilanguage search results is not cool, we
aren't sure, but can't find another solution to address this problem
the reason we try to achieve this scenario:
we have multilanguage support in our system.
so the user can create an item and add multiple descriptions for it in different languages.
so we split the textual description into a seperate entity ItemDescription.
this should allow us to find the item no matter in what language the user searches for it.
maybe this solution to support multilanguage search results is not cool, we aren't sure, but can't find another solution to address this problem
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.