Hi,
I'm sorry for the duplicated post but in the previous the configuration
script wasn't readable.
we have some problems with the similarity search in Jackrabbit 2.0.
We previously used the version 1.6 without any problem.
We defined some custom node types:
exm:document-->exm:content-->jcr:content
The following query doesn't work after the upgrade to the new version
(before the query we have added six identical documents into the repository
each with the same keywords longer than four characters repeated at least
three times as specified here
http://wiki.apache.org/jackrabbit/SimilaritySearch ):

"/jcr:root/testsandbox/home//element(*,
exm:document)[rep:similar(exm:content/jcr:content,
'/testsandbox/home/test/documents/tes-file.txt/exm:content/jcr:content')]
order by jcr:score() descending"

We have the configuration described here below:

<Workspace name="${carta.jackrabbit.workspace.name}">
...
...
<SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="analyzer"
value="org.apache.lucene.analysis.SimpleAnalyzer"/>
            <param name="path"
value="${carta.jackrabbit.repository.home}/${carta.jackrabbit.workspace.name}/index"/>
            <param name="extractorPoolSize" value="0"/>
            <param name="extractorTimeout" value="100"/>
            <param name="volatileIdleTime" value="3"/>
            <param name="maxVolatileIndexSize" value="10485760"/>
            <param name="supportHighlighting" value="true"/>
                        <param name="excerptProviderClass"
value="ch.exm.carta.search.excerpt.HTMLExcerpt"/>
                        <param name="indexingConfiguration"
value="${carta.jackrabbit.repository.home}/IndexingConfiguration.xml"/>
            <param name="spellCheckerClass"
value="org.apache.jackrabbit.core.query.lucene.spell.LuceneSpellChecker$FiveSecondsRefreshInterval"/>
        </SearchIndex>
...
...
</Workspace>

Is the configuration wrong or is a bug of the new version of Jackrabbit?
Is there a workaround?

Regards,
Roberto Bentivoglio
-- 
View this message in context: 
http://n4.nabble.com/Some-problems-with-similarity-search-tp622186p622194.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to