RAM Directory not Serializable in Lucene 4.4 as well as 5.X

2016-01-07 Thread Ankit.Murarka
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

RE: RAM Directory not Serializable in Lucene 4.4 as well as 5.X

2016-01-07 Thread Uwe Schindler
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

Proper use of LRUQueryCache

2016-01-07 Thread samt & sonders
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

Re: Proper use of LRUQueryCache

2016-01-07 Thread Adrien Grand
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

Any updates on the G1 collector and Lucene recently?

2016-01-07 Thread Marcos Juarez
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

RE: Any updates on the G1 collector and Lucene recently?

2016-01-07 Thread Uwe Schindler
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 -