Re: MatchAllDocsQuery and MatchNoDocsQuery

2010-05-10 Thread Yonik Seeley
Yes on all counts. Lucene doesn't modify query objects, so they are save for reuse among multiple threads. -Yonik Apache Lucene Eurocon 2010 18-21 May 2010 | Prague 2010/5/10 Mindaugas Žakšauskas : > Hi, > > Can anybody confirm whether MatchAllDocsQuery can be used as an > immutable singletone

MatchAllDocsQuery and MatchNoDocsQuery

2010-05-10 Thread Mindaugas Žakšauskas
Hi, Can anybody confirm whether MatchAllDocsQuery can be used as an immutable singletone? By this I mean creating a single instance and sharing it whenever I need to either use it on its own or in cojunction with other queries put into a BooleanQuery; to result all documents in a search result. Ca