Is it possible to use Lucene filters inside ElasticSearch? Or somesort
of bitset manipulation of the document result?
The reason I ask is that we want to restrict read access for certain
users on certain documents. It can be alot of users and we do not want
to index those rights if it's another possibility. Until now I have a
custom search based on lucene, but want to use ElasticSearch instead.
In our custom implementation we add a security filter that looks up in
a table (or map) for each key and filter out those that will not be in
the result.
Once you have that, you can write a plugin that adds your own custom filter
parser registered under a name by checking on IndexQueryParserModule
instance, and using the addFilterParser on it.
On Wed, Sep 28, 2011 at 12:06 PM, Sten Roger stenrs@gmail.com wrote:
Hi.
Is it possible to use Lucene filters inside Elasticsearch? Or somesort
of bitset manipulation of the document result?
The reason I ask is that we want to restrict read access for certain
users on certain documents. It can be alot of users and we do not want
to index those rights if it's another possibility. Until now I have a
custom search based on lucene, but want to use Elasticsearch instead.
In our custom implementation we add a security filter that looks up in
a table (or map) for each key and filter out those that will not be in
the result.
Once you have that, you can write a plugin that adds your own custom filter
parser registered under a name by checking on IndexQueryParserModule
instance, and using the addFilterParser on it.
On Wed, Sep 28, 2011 at 12:06 PM, Sten Roger ste...@gmail.com wrote:
Hi.
Is it possible to use Lucene filters inside Elasticsearch? Or somesort
of bitset manipulation of the document result?
The reason I ask is that we want to restrict read access for certain
users on certain documents. It can be alot of users and we do not want
to index those rights if it's another possibility. Until now I have a
custom search based on lucene, but want to use Elasticsearch instead.
In our custom implementation we add a security filter that looks up in
a table (or map) for each key and filter out those that will not be in
the result.
Once you have that, you can write a plugin that adds your own custom
filter parser registered under a name by checking on IndexQueryParserModule
instance, and using the addFilterParser on it.
On Wed, Sep 28, 2011 at 12:06 PM, Sten Roger stenrs@gmail.com wrote:
Hi.
Is it possible to use Lucene filters inside Elasticsearch? Or somesort
of bitset manipulation of the document result?
The reason I ask is that we want to restrict read access for certain
users on certain documents. It can be alot of users and we do not want
to index those rights if it's another possibility. Until now I have a
custom search based on lucene, but want to use Elasticsearch instead.
In our custom implementation we add a security filter that looks up in
a table (or map) for each key and filter out those that will not be in
the result.
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.