You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2025/10/10 18:31:44 UTC

Why no static MatchAllDocsQuery.INSTANCE ?

Does anyone remember ay specific reason why the MatchAllDocsQuery class 
doesn't contain something like ...

   public static final MatchAllDocsQuery INSTANCE = new MatchAllDocsQuery();


Tryingto make it a true singleton at this point would certainly break a 
lot of code -- but is there any reason not to offer a convinience instance 
for query parsers & rewrite methods & other downstream code to re-use and 
avoid additional object creation?


-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org