-
1. Re: Defining indexes in WildFly kit
wesssel Jun 12, 2015 1:28 PM (in response to wesssel)[standalone@localhost:9990 /] /subsystem=modeshape/repository=sample/index-provider=local:add(classname=org.modeshape.jcr.index.local.LocalIndexProvider,path=data/modeshape-indexes,relative-to=/
{
"outcome" => "failed",
"failure-description" => "JBAS014749: Operation handler failed: Service jboss.modeshape.sample.indexProviders.local is already registered",
"rolled-back" => true
}
[standalone@localhost:9990 /] /subsystem=modeshape/repository=sample/index-provider=local:remove()
{
"outcome" => "failed",
"failure-description" => "JBAS014807: Management resource '[
(\"subsystem\" => \"modeshape\"),
(\"repository\" => \"sample\"),
(\"index-provider\" => \"local\")
]' not found",
"rolled-back" => true
}
[standalone@localhost:9990 /]
When trying to add I'm getting an exception stating it already exists, but I cannot find it.
-
2. Re: Defining indexes in WildFly kit
hchiorean Jun 15, 2015 2:24 AM (in response to wesssel)You can see what the XML is supposed to look like here: https://docs.jboss.org/author/display/MODE40/Query+and+search#Queryandsearch-Usingindexes . Also, the ModeShape XSD contains the full list of attributes & elements plus their description.
-
3. Re: Defining indexes in WildFly kit
wesssel Jun 16, 2015 4:47 PM (in response to hchiorean)There might be a bug in WF kit that does not allow you to create an index-provider named "local". I needed to rename my index provider to "local2".
-
4. Re: Defining indexes in WildFly kit
hchiorean Jun 17, 2015 3:40 AM (in response to wesssel)You can definitively have "local" as an index provider name in your XML: modeshape/standalone-modeshape.xml at modeshape-4.3.0.Final · ModeShape/modeshape · GitHub