Re: Lucene Search Query Question

Gilles Schlienger <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.