Hi Gilles,
your question lead me to figure out that there was an error in the way the relevance was computed.
The relevance of a page is based on the average of all hits ( one hit<->one field ) for this page.
The fix is available in cvs (JAHIA-4-0-BRANCH)
http://cvspub.jahia.org/cgi-bin/cvsweb.cgi/jahia/src/java/org/jahia/services/search/Attic/JahiaSearchResultHandlerImpl.java.diff?r1=1.2.2.5;r2=1.2.2.6;f=h
Regards, Khue
----- Original Message ----- From: "Gilles Schlienger" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 05, 2005 5:37 PM
Subject: Re: Lucene Search Query Question
Thanks a lot for your detailed answers,
last question (~similar to question 3) about the influence of one field on the total result
3. Why in a page, when I add a word to a BigText and the word exists in the Title, the result percentage is sometimes lowered?
How is the percentage of relevance displayed calculated: - based on the best field of the page? - based on an average between all the fields? - ...?
Thanks again Gilles
--- Khue Nguyen <[EMAIL PROTECTED]> a �crit :Hi,
>>
>> 1. how Jahia pages/containers/fields are indexed by Lucene, for >> example:
>> - field by field ?
>> - page by page (all fields indexed at once with field names) ?
>> - some fields have more weight than others (Title) ?
Actually, only fields are indexed. And the indexation occurs when a field
has been updated or created.
Each field is stored in search index as a single lucene document ( no
grouping by page or by container ). But as each document contains a
container id and page id, it is possible to display search result by page or
by container.
Field have same weight.
>> 2. the use of parameters like "fieldname:..." in the context of Jahia >> in=
>> the search query?
>>
The "fieldname:..." reffers to field definition name that is stored in the
index with each indexed field.
So if the query looks like "myword AND fieldname:title", the searh will
return hits that match fields with field name definition = "title" and
which value containing the "myword" String.
>> 3. why in a page, when I add a word to a BigText and the word exists >> in
>> the=
>> Title, the result percentage is sometimes lowered?
That can be explained by the fact that when entering a word in a BigText with a WYSIWYG editor, extra html tags are added :
i.e : <html>myword</html>
So the result percentage is lowered due to the length of the full String.
Regards, Khue Nguyen
D�couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
