I can handle situations where this can take long once, since I'm
really asking something
that Lucene isn't designed for, but the culprit is that I can't really
cache the resulting
bitset. I can cache it on one of the Lucene servers, but can't share
it among the rest of
the servers (we will eventually have way more than one for
scalabilty/reliability reasons).
We cannot afford to calculate these bitsets on all servers (think of a
repeated search, or
paging, when you cannot make sure that you will hit the same Lucene
application to do the
search - you might end up on a different server that hasn't seen a
request before).
First, have you looked at SwarmCache? Cluster aware caching for java...
Second...does it matter that you cannot share the same cache across
multiple servers? How about a separate cache on each server? When a
request hits a particular server for the first time it builds the filter
and caches it. I do a lot of filter caching that way with EHcache.
There must be some way to cache that filter...
- Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]