Thank you for the solution!
There is one more thing that I wanted to ask. Currently we are using
Embedded Deployment Model for Jackrabbit but we want to switch to Shared
Model in order to avoid potential problems when Jackrabbit can block
main application.
Do you think it makes sense and may help?
Regards,
Anton
Hi,
This way is also ok.
The tika-config File is used to define what file types should be indexed.
You should not change the File in the jackrabbit-core. you must only
put your custom tika-config.xml file into your workspace folder and configure
the SearchIndex to use it.
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="tikaConfigPath" value="${wsp.home}/tika-config.xml"/>
A sample tika config could be...
...
<parsers>
<parser class="org.apache.tika.parser.DefaultParser"/>
<parser class="org.apache.tika.parser.EmptyParser">
<mime>application/pdf</mime>
</parser>
</parsers>
...
greets
claus