Per user document exclusions

Hi,

We have a need to allow each user to 'exclude' individual documents in the
results. We can easily do this now within the RDBMS using a FTS index and a
query with 'OUTER LEFT JOIN WHERE NULL' type of thing.

Can Elasticsearch do this somehow? Heavy customization is not a problem - I
would bet this has already been done. I would like to avoid multiple trips
back and forth from either the DB or Elasticsearch if possible.

Thanks!

--

Could you filter your query with a "not filter" based on ids?

http://www.elasticsearch.org/guide/reference/query-dsl/not-filter.html
http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html

Does it help?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 19 nov. 2012 à 06:09, Christian Jensen christian@jensenbox.com a écrit :

Hi,

We have a need to allow each user to 'exclude' individual documents in the results. We can easily do this now within the RDBMS using a FTS index and a query with 'OUTER LEFT JOIN WHERE NULL' type of thing.

Can Elasticsearch do this somehow? Heavy customization is not a problem - I would bet this has already been done. I would like to avoid multiple trips back and forth from either the DB or Elasticsearch if possible.

Thanks!

--