jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: boost attribute not working?
Date Thu, 16 Apr 2009 07:12:41 GMT
Hi,

2009/4/16 Paulo Formoso Silva <paulo.jf.silva@criticalsoftware.com>:
>  - I'm doing the query like this: "SELECT * FROM nt:resource WHERE
> CONTAINS(., 'test')  ORDER BY jcr:score ASC"
>
> Any idea why the boost doesn't work? Is there any tips how to make boost
> work?

the boost only comes into play if you do a contains on that property.

I.e. you need to run the following query:

SELECT * FROM nt:resource WHERE CONTAINS(., 'test') OR
CONTAINS(jcr:title, 'test') OR CONTAINS(jcr:keywords, 'test') ORDER BY
jcr:score ASC

and probably sort DESC ;)

higher score values mean better match.

regards
 marcel

Mime
View raw message