Besides working on projects using ElasticSearch, I am still using on Lucene
as well. One limitation of Lucene is that a query or sub-query cannot
continue only NOT clauses. The common workaround is to ask for everything : when using a NOT clause.
I believe ElasticSearch does this automatically when using NOT clauses. I
am looking to borrow coughstealcough some ideas, but I can't figure
where exactly in the code this magic is happening. Anyone have any ideas
where it could be? Imitation is the sincerest form of flattery.
On Thursday, April 4, 2013 1:56:12 PM UTC-4, Ivan Brusic wrote:
Besides working on projects using Elasticsearch, I am still using on
Lucene as well. One limitation of Lucene is that a query or sub-query
cannot continue only NOT clauses. The common workaround is to ask for
everything : when using a NOT clause.
I believe Elasticsearch does this automatically when using NOT clauses. I
am looking to borrow coughstealcough some ideas, but I can't figure
where exactly in the code this magic is happening. Anyone have any ideas
where it could be? Imitation is the sincerest form of flattery.
Thanks so much. I was looking in the Builder classes, while the call was in
the parser instead.
I knew I would learn something. My code is pretty much identical, except I
didn't know about the existence of isProhibited(). Not sure how I missed it
after many years of using Lucene.
--
Ivan
On Fri, Apr 5, 2013 at 6:51 AM, Igor Motov imotov@gmail.com wrote:
On Thursday, April 4, 2013 1:56:12 PM UTC-4, Ivan Brusic wrote:
Besides working on projects using Elasticsearch, I am still using on
Lucene as well. One limitation of Lucene is that a query or sub-query
cannot continue only NOT clauses. The common workaround is to ask for
everything : when using a NOT clause.
I believe Elasticsearch does this automatically when using NOT clauses. I
am looking to borrow coughstealcough some ideas, but I can't figure
where exactly in the code this magic is happening. Anyone have any ideas
where it could be? Imitation is the sincerest form of flattery.
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.