I have a question about how to implement the following in ElasticSearch:
Tokens can be a User IDs, Organization IDs, and Group IDs.
(To make this example easier to follow I am using single-character tokens
but in reality they are 16-character long strings that are the
Base64-encoding of 12-byte MongoDB IDs. There is also a unique Public ID
which all public documents have and which all queries can access.)
Each user has access to a list of tokens they are authorized to
access.
Each document has a list of tokens that are authorized to access
it.
This query is not working for me. I am trying to use terms to basically
to do an array/array intersection test but it seems like it can only do a
single-value/array intersection test since the example works if I replace:
auth: [ "A", "C", "D" ]
with
auth: "A"
Is there a way to make terms work with this or should I be taking a
different approach?
Thank you!
p.s. Thanks for/to ElasticSearch and its community.
Am Mittwoch, 11. Juli 2012 16:58:01 UTC+2 schrieb Jori:
Hi,
I have a question about how to implement the following in Elasticsearch:
Tokens can be a User IDs, Organization IDs, and Group IDs.
(To make this example easier to follow I am using single-character tokens
but in reality they are 16-character long strings that are the
Base64-encoding of 12-byte MongoDB IDs. There is also a unique Public ID
which all public documents have and which all queries can access.)
Each user has access to a list of tokens they are authorized to
access.
Each document has a list of tokens that are authorized to
access it.
This query is not working for me. I am trying to use terms to
basically to do an array/array intersection test but it seems like it can
only do a single-value/array intersection test since the example works if I
replace:
auth: [ "A", "C", "D" ]
with
auth: "A"
Is there a way to make terms work with this or should I be taking a
different approach?
Thank you!
p.s. Thanks for/to Elasticsearch and its community.
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.