This content has been marked as final.
Show 2 replies
-
1. Re: Cannot query anything after restart
ozhou Feb 4, 2013 12:46 AM (in response to ozhou)After calling ((org.modeshape.jcr.api.Workspace)session.getWorkspace()).reindex(), the query will succeed.
It looks like rebuiltIndexOnStartup doesn't work, the default value for this configuration is "if_missing". But even I set it to "always", still no luck.
Anyway, I fixed this issue by adding the following to the configuration file:
"query" : {
"enabled" : true,
"indexStorage" : {
"type" : "filesystem",
"location" : "/Users/zhouyujie/index",
"lockingStrategy" : "native",
"fileSystemAccessType" : "auto"
}
}
-
2. Re: Cannot query anything after restart
hchiorean Feb 4, 2013 5:19 AM (in response to ozhou)Hi Oliver,
I've opened https://issues.jboss.org/browse/MODE-1783 to investigate if/why the rebuild/always isn't working.