: > Hoss means calling rewrite on the *result* of a rewrite.
: Uh? That's what I mean (propose), too... But currently nothing's cached at
: all.
: Cache the result (BooleanQuery) of rewrite() in a WeakHashMap with key =
: IndexReader and value = LRU.

yes .. you can do that. you don't need anything in the core lucene
Searchers to do it for you (ie: nothing needs refactored out, because
redundent rewrite calls are cheap) ... in the paragraph below,
"application" refers to your code, "Lucene" refers to the code in the
lucene JAR...

: > So the application would call rewrite, cache the resulting query, and
: > then use that already rewritten query from then on. Lucene wouldn't
: > know it had already been rewritten, and would call rewrite again, but
: > it should be fast.


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

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 8 | next ›
Discussion Overview
groupdev @
postedDec 11, '07 at 12:28p
activeSep 6, '08 at 6:56p



site design / logo © 2021 Grokbase