[fw-general] Zend_Search_Lucene field boost?

2007-03-12 Thread peterVG

The documentation mentions 
http://framework.zend.com/manual/en/zend.search.query-language.html#zend.search.query-language.boosting
boosting a query term  but I want to be able to boost the hit relevance of
all terms stored in a given field. 

Let's say I have an index for a book collection that contains the fields
Title, Author, Description. I want to be able to boost ALL terms stored in
the Title field by a factor of 1.5.

I expected it would be possible to boost a field using a parameter when I
add the field to an index document (e.g.,
$doc-addField(Zend_Search_Lucene_Field::Unstored('title', $Title, 1.5);)

However, I browsed the source code and this does not seem to be the case.

The documentation talks about creating your own 
http://framework.zend.com/manual/en/zend.search.extending.html#zend.search.extending.scoring
Similarity class  to modify the scoring algorithm but the examples don't
seem to address field boosting.

Also, I found 
http://www.nabble.com/Zend_Search_Lucene-field-boost-tf2859815s16154.html#a7990207
this thread  in the Zend Framework forum that seems to suggest that it is
possible but, again, the details are vague.

Can anyone clarify if field boosting is possible and, if so, how exactly do
I implement it?

Many thanks,

peterVG
-- 
View this message in context: 
http://www.nabble.com/Zend_Search_Lucene-field-boost--tf3391214s16154.html#a9439937
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Search_Lucene field boost?

2007-03-12 Thread peterVG

Great! Thanks Alexander.
-- 
View this message in context: 
http://www.nabble.com/Zend_Search_Lucene-field-boost--tf3391214s16154.html#a9441132
Sent from the Zend Framework mailing list archive at Nabble.com.