Dear Team,
I am trying to serialize RAM Directory object but it throws an exception every
time.
MY use case is to serialize the object and store it in Database for reasons
beyond my control.
Same also for retrieving the object from database and then putting it into RAM
Directory.
Need your
Hi,
Lucene does not support any serialization out of the box. If you really need to
serialize the RAMDirectory, you have to do it on your own using the IndexInputs
provided.
Lucene 3 accidentally had RAMDirectory be able to be serialized, but it was
broken. All of this was removed in 4.0.
Uwe
Hi,
I'm changing my code from using CachingWrapperQuery/CachingWrapperFilter
to LRUQueryCache and I'm running into some questions:
1.) what is the right way to use the LRUQueryCache:
Query myCacheQuery = queryCache.doCache(myQuery, defaultCachingPolicy);
a.) Doing this ones and re-use myCa
Hi Andreas,
The easiest way is to use the query cache through
IndexSearcher.setQueryCache. Then IndexSearcher will figure out by itself
which filters are worth caching.
Le jeu. 7 janv. 2016 à 13:30, samt & sonders a
écrit :
> Hi,
>
> I'm changing my code from using CachingWrapperQuery/CachingWr
I've mostly used CMS for in all production VMs in the past, both Lucene and
not, and it has worked great. However, now I'm faced with the possibility
of having to use G1, and it scares me a bit.
What's the latest on using the G1 collector with Lucene, especially since
it'll be the default collect
Hi,
personally, I have not seen any horrible problems caused by G1GC since Java
8u40. I would say, it is safe, but others may have their own opinion.
https://jaxenter.com/java-9s-new-garbage-collector-whats-changing-whats-staying-118313.html
In any case, use latest Java 8 Update 65.
Uwe
-