modeshape

Create new workspace

自作多情 提交于 2020-01-15 07:01:29
问题 Section 7.1.6 of the Modeshape docs say 'Your application can now create and remove workspaces using the standard JCR 2.0 API.' The JCR 2.0 doc says to use Workspace.createWorkspace(String name) How do I make this part of my repository obtained using the code at the bottom of this post? Also, how to I get a list of the workspaces already in the repository? Thanks for (RepositoryFactory factory : ServiceLoader.load(RepositoryFactory.class)) { if (factory instanceof org.modeshape.jcr.api

Best Way to implements a tag based search system by JCR like Modeshape

為{幸葍}努か 提交于 2019-12-18 11:33:38
问题 I need a tag based search system by JCR like Modeshape. i want to search nodes by some tags. Question is that what is the best way to implement it? Adding new node type and mixins for tags so if that is true, where can i define my tags name that is viewable to users? Implement a hierarchy of tags and reference them in my nodes. so if that is true how can i reference them? Any other way. 回答1: There are several ways to implement tags in JCR. Which option you pick will depend upon the needs of

What does ModeShape offer that JackRabbit doesn't?

隐身守侯 提交于 2019-12-18 10:26:01
问题 I just familiarized myself with Apache JackRabbit. I've done a little multi-user repository for document management. If anybody used both of them, could you please answer these questions ? Is ModeShape somehow linked to JBoss ? I don't have much experience with JBoss AS or any other JBoss tools. I see a support for tomcat, but a lot of JBossy stuff Documentation says that future releases should have UI integration, is it far future ? What kind of UI integration would it be ? Is there

ranked full text search results using Lucene with modeshape

独自空忆成欢 提交于 2019-12-06 07:23:34
问题 I'm trying to get full-text search working with modeshape. I'm particularly interested in ranked results based on lucene index. Here is my repository configuration "indexProviders": { "lucene": { "classname": "lucene", "directory": "${user.home}/repository/indexes" } }, "indexes": { "textFromFiles": { "kind": "text", "provider": "lucene", "nodeType": "nt:resource", "columns": "jcr:data(BINARY)" } }, I noticed a lucene index created at the specified location. I added 10-15 filesc with varied

ranked full text search results using Lucene with modeshape

帅比萌擦擦* 提交于 2019-12-04 14:28:14
I'm trying to get full-text search working with modeshape. I'm particularly interested in ranked results based on lucene index. Here is my repository configuration "indexProviders": { "lucene": { "classname": "lucene", "directory": "${user.home}/repository/indexes" } }, "indexes": { "textFromFiles": { "kind": "text", "provider": "lucene", "nodeType": "nt:resource", "columns": "jcr:data(BINARY)" } }, I noticed a lucene index created at the specified location. I added 10-15 filesc with varied number of occurrence of search term into repository, and tried searching using some words. I am printing