You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Andreas Behnke <ab...@andreasbehnke.com> on 2011/09/15 23:49:28 UTC

similarity search missing in new query languages, Jackrabbit 2.0

Hi,

I'm implementing a simple rss newsreader based on jackrabbit 2.0. I want
to implement a "More Like This" Feature using the similarity search.

I don't want to use the deprecated xpath language, so I'm writing every
Query I need using the SQL2 grammar. This grammar, and also the old SQL
grammar, do not support similarity.

The LuceneQueryBuilder, which is implemented as visitor of the internal
AST, does support Similarity search.

What is the best way to implement a similarity query without using xpath
language?

- produce query nodes (AST) by code and run the LuceneQueryBuilder
manually
- query lucene by using the MoreLikeThis class directly
- don't use the internal lucene index of jackrabbit but create a second
one for fulltext and similarity search

Thanks a lot and best regards,
Andreas


Re: similarity search missing in new query languages, Jackrabbit 2.0

Posted by Mark Herman <MH...@NBME.org>.
Andreas Behnke wrote:
> 
> This grammar, and also the old SQL grammar, do not support similarity.
> 
According to [0] the old grammar does support it, but I've never done it.
Not sure if it's supposed to work in jcr_sql2. Maybe you need to turn on the
supportHighlighting [0 again] option (it's off by default)?

[0] http://wiki.apache.org/jackrabbit/SimilaritySearch

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/similarity-search-missing-in-new-query-languages-Jackrabbit-2-0-tp3816867p3818162.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.