Yes I deleted all the index folders and restarted jackrabbit server. I checked the logs to make sure everything was getting reindexed.
On Tuesday, January 22, 2013, Marcel Reutegger wrote: > Hi Nabil, > > did you perform a re-index after you changed the configuration? > > adding or changing an indexing configuration will not automatically > update the index. > > regards > marcel > > > -----Original Message----- > > From: Nabil Shuhaiber [mailto:[email protected]] > > Sent: Samstag, 19. Januar 2013 12:36 > > To: [email protected] > > Subject: IndexingConfiguration not being applied > > > > I have spent the last few days trying to work this one out with no luck > so > > far. I can't find any bug reports so I must be doing something very > obvious > > wrong. I am using latest stable Jackrabbit 2.4.3 and have made the tika > fix > > to get full text search working. > > > > Put simply I am able to run the query "SELECT * FROM [nt:resource] AS doc > > WHERE CONTAINS(doc.*, 'DILIGENCE')" and get 2 results back. I want to > > apply > > the indexing configuration below and be able to run the query "SELECT * > > FROM [nt:file] AS doc WHERE CONTAINS(doc.*, 'DILIGENCE')" to get the > > same > > results. > > > > I have done the following as per the wiki to enable the index > configuration: > > > > 1) Added "<param name="indexingConfiguration" > > value="${wsp.home}/indexing-configuration.xml"/>" to the repository.xml > > SearchIndex element of the workspace. > > > > 2) Added "<param name="indexingConfiguration" value=" > > ${rep.home}/indexing-configuration.xml"/>" to the repository.xml > > SearchIndex element of the repository. > > > > 3) Added "<param name="indexingConfiguration" value=" ${ > > wsp.home}/indexing-configuration.xml"/>" to the workspace.xml > > SearchIndex > > element of both the workspaces (default and security). > > > > 4) Placed the indexing-configuration.xml in all the correct > locations. > > > > > > See below for my full indexing-configuration.xml, repository.xml and > > workspace.xml. > > > > Would really appreciate some help. This is driving me crazy :) Thanks > > > > Nabil > > > > > ---------------------------------------------------------------------------------------------- > > ---------------------------- > > <?xml version="1.0"?> > > <!DOCTYPE configuration SYSTEM " > > http://jackrabbit.apache.org/dtd/indexing-configuration-1.2.dtd"> > > <configuration xmlns:jcr="http://www.jcp.org/jcr/1.0" > > xmlns:nt="http://www.jcp.org/jcr/nt/1.0"> > > > > <aggregate primaryType="nt:file"> > > <include>jcr:content</include> > > <include>jcr:content/*</include> > > <include-property>jcr:content/jcr:lastModified</include-property> > > </aggregate> > > > > </configuration> > > > > > > <?xml version="1.0" encoding="UTF-8"?><Workspace name="default"> > > <!-- > > virtual file system of the workspace: > > class: FQN of class implementing the FileSystem interface > > --> > > <FileSystem > > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > > <param name="path" value="${wsp.home}"/> > > </FileSystem> > > <!-- > > persistence manager of the workspace: > > class: FQN of class implementing the PersistenceManager > > interface > > --> > > <PersistenceManager > > class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManag > > er"> > > <param name="url" > > value="jdbc:derby:${wsp.home}/ -- Best Regards, Nabil Shuhaiber
