Are Lucene's Query
objects reusable/stateless ?
If not, will clone()
ing a TermQuery
be faster than rebuilding it ?
yes: The purpose of Weight is to ensure searching does not modify a Query, so that a Query instance can be reused.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With