-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I'm working on a site which has a decent number of tagged documents
(~2m). ES indexes the tags (plus a bunch of other fields) and users
navigate the site using pages with size/from, nothing very fancy
there. ES is just storing the documents; everything else lives in
MongoDB (including the docs themselves, we just use ES for querying
and display - it's a Rails app using tire as an ES adapter).
We allow users to hide (completely remove) and obscure (they won't see
unless they click through) results by storing lists of tags on user
objects, and doing a one-by-one check (are any of $document's tags in
$user's obscured list, if so obscure, if not render normally) for
obscuring and a not terms filter for hiding documents.
We're now looking at letting users use complex hiding/obscuring -
using booleans, mainly - by storing queries (ie 'tag1 OR (tag2 AND
tag3)') on the user object and searching using that as a filter
instead of our current not terms filter, but when it comes to
obscuring we're having some issues working out how to map that to ES
queries.
Ideally we'd get the hidden-filtered, obscured-annotated list back
from ES somehow but I don't think (having read the docs) that it's
feasible to do this.
Am I wrong in thinking I'm going to have to make a second query with
the results from the first to see which docs match the obscured
documents query, then marry the results up in the application, or is
there a neater solution?
Cheers,
James Harrison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
iEYEARECAAYFAlFcpf8ACgkQ22kkGnnJQAzXLwCgp5MfClOpRPwbmv/dajpkiMDf
S3kAn18629NZXH3MLkSYzdN6B52iXUXe
=vd3i
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.