[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Search Index does not work between restarts  XML
Forum Index -> BigMemory
Author Message
akshay92

neo

Joined: 07/14/2014 05:45:57
Messages: 2
Offline

I am testing bigmemory go and I seem to have a problem with the search-index on disk.
I have a off heap cache with NONE persistence.
After a restart, when I repopulate the cache with elements and search for the keys of these elements with a simple query:
cache.createQuery().includeKeys().includeValues().execute()
I only get null values.
if I run: cache.get(KEY), I get a value.
If I delete the search index and try again, it works fine.

Any recommendations on how to get it to work without deleting the search index?
akshay92

neo

Joined: 07/14/2014 05:45:57
Messages: 2
Offline

Hello,
I have an update.
I am trying to initialize part of the cache programatically and partly through xml. This does not seem to work.
Especially the CacheManager.addCache(Cache) is not working.

If I do it all though xml it seems to work.
Does anyone have an idea why?
yzhang

neo

Joined: 01/14/2013 15:47:21
Messages: 5
Offline

Hi can you please attach your code and xml files?
Search should work without having to clear the indices.
 
Forum Index -> BigMemory
Go to:   
Powered by JForum 2.1.7 © JForum Team