Re: Lucene Search Query Question

"Khue Nguyen" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <000d01c4f32f$3be655e0$7c02a8c0@SINGASONG>
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
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.