You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Thomas Kratz <th...@eiswind.de> on 2008/11/23 14:22:43 UTC

Can't get Indexing to work

I ran into another problem now.

 

I configured the index as follows:

<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">

                  <param name="path"
value="${rep.home}/workspaces/mango/index"/>

                  <param name="useCompoundFile" value="true"/>

                  <param name="minMergeDocs" value="100"/>

                  <param name="volatileIdleTime" value="3"/>

                  <param name="maxMergeDocs" value="100000"/>

                  <param name="mergeFactor" value="10"/>

                  <param name="bufferSize" value="10"/>

                  <param name="cacheSize" value="1000"/>

                  <param name="forceConsistencyCheck" value="false"/>

                  <param name="autoRepair" value="true"/>

                  <param name="analyzer"

 
value="org.apache.lucene.analysis.de.GermanAnalyzer"/>

                        <param name="textFilterClasses"
value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra
bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP
ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach
e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract
or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap
ache.jackrabbit.extractor.XMLTextExtractor"/>

            </SearchIndex>

 

Then I stored a document (nt:file) with mimetype application/pdf and try to
find it with 

//*[jcr:contains(jcr:content, '" + text + "')]

 

And I get no results. Again I don't understand what Im getting wrong.

 

Seems all difficult to me L


Re: Can't get Indexing to work

Posted by Marcel Reutegger <ma...@gmx.net>.
Thomas Kratz wrote:
> <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
> 
>                   <param name="path"
> value="${rep.home}/workspaces/mango/index"/>

this is a hard coded path for the index in your workspace. you should rather
use: <param name="path" value="${wsp.home}/index"/>

regards
 marcel