jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From flopsi73 <flo...@flopsi.org>
Subject Re: Scoring algorithm
Date Fri, 12 Sep 2008 14:22:04 GMT

thanks for the answer. My example was not taken from reality, so I just
added the 'and' to make it clear. I am aware of that this is no query i can
fire towards JackRabbit as is.
For the Lucene part i see it is maybe more adequate to consult a Lucene
forum. I had a look at some scorer and weight sources (e.g. BooleanScorer2
and BooleanWeight2) but that seems much grown and too hard stuff...
Thanks a lot

Marcel Reutegger wrote:
> Hi,
> flopsi73 wrote:
>> //*[@att1='val1' and jcr:contains(jcr:content, 'val2 and (val3 or
>> val4')]//*[@att2='val5' and jcr:contains(jcr:content, 'val6 and (val7 or
>> val8')]
> this is probably not doing what you intend to do. JCR specifies only one
> operator in the jcr:contains function: OR (must be upper case!). query
> terms are
>  implicitly ANDed. grouping using parentheses is not specified in JSR 170,
> but
> Jackrabbit supports it.
>> how does scoring work on this, especially how are the scores of the
>> simple
>> terms combined to the total score? I hope it is easier than i think ;-)
> the Jackrabbit implementation uses the Lucene scoring as is. in general
> only the
> jcr:contains() function contributes to the score value.
> regards
>  marcel

View this message in context: http://www.nabble.com/Scoring-algorithm-tp19454893p19456919.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message