We want to be able to suggest entities to customers that are similair to
their entity. For example, i create a *wishlist *and add 10 products to
that list. Another customer also created a wishlist with 20 products on it
and there are *6 *products that are the *same *on both lists. We want to be
able to suggest the list from the other customer to myself.
The 'more like this' API seems like it can be used but there is very little
control over what you can configure. The more like this query is more
flexible but i don't want to provide text, i simply want to say: "search
lists that are like mine based on the array of productId's from my list
where there should be at least 5 (exact) matches".
Is this possible with elasticsearch? If so, which way to go?
as a side note: i've modelled a product as a nested document inside the
list-entity
Op maandag 6 januari 2014 12:15:57 UTC+1 schreef Maarten Roosendaal:
Hi,
We want to be able to suggest entities to customers that are similair to
their entity. For example, i create a *wishlist *and add 10 products to
that list. Another customer also created a wishlist with 20 products on it
and there are *6 *products that are the *same *on both lists. We want to
be able to suggest the list from the other customer to myself.
The 'more like this' API seems like it can be used but there is very
little control over what you can configure. The more like this query is
more flexible but i don't want to provide text, i simply want to say:
"search lists that are like mine based on the array of productId's from my
list where there should be at least 5 (exact) matches".
Is this possible with elasticsearch? If so, which way to go?
flatten the data to 1 property (productIds) so it is an array of
productId's
use the API
and it worked quite nicely, but i have no control over other things like,
only compare to lists with more than 5 productId's.
What i'm not certain of if i could use nested objects instead of
productId's. I could of course do both!
Firstly I'll try to rewrite the mtl API as an mtl query so i get the same
result, from that point on i'll use your link to configure a more precise
result.
Thanks,
Maarten
Op maandag 6 januari 2014 13:42:13 UTC+1 schreef Jörg Prante:
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.