I was wondering if via scripting or another way, I could be able to discard
documents retrieved based in results from the documents themselves (what!?).
Where I index *Reviews *from Users made in *Listings, *but I don't want
to retrieve those documents where field *User.id == Listing.user_id. *But I
don't know how to determine this condition when I want to dismiss a
document based in a condition that lives inside it.
Is there any way to cover this limitation?
Yes script filter can accomplish this but it could be very slow if you have
lots documents. You can access the source in script using the _source
reference.
I'm going to take a better look and see what happends.
Thx!!
El jueves, 3 de abril de 2014 18:37:25 UTC-3, Binh Ly escribió:
Yes script filter can accomplish this but it could be very slow if you
have lots documents. You can access the source in script using the _source
reference.
El jueves, 3 de abril de 2014 16:52:29 UTC-3, @mromagnoli escribió:
Hi everybody,
I'm having the next issue:
I was wondering if via scripting or another way, I could be able to
discard documents retrieved based in results from the documents themselves
(what!?).
Where I index *Reviews *from Users made in *Listings, *but I don't want
to retrieve those documents where field *User.id == Listing.user_id. *But
I don't know how to determine this condition when I want to dismiss a
document based in a condition that lives inside it.
Is there any way to cover this limitation?
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.