You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create the index in phpsolrclient,calling setboost method.
why is not the effect of the settings ?The code as follows:
while($row=mysql_fetch_array($result,MYSQL_ASSOC)){
$part = new Apache_Solr_Document();
$part->setFieldBoost("msg_sale_title",2);
$part->title=$row['title'];
$part->article=$row['article'];
$documents[] = $part;
$count++;
if($count ==100)
{
$solr->addDocuments( $documents );
$solr->commit();
$documents = array();
$count=0;
}
}
Original issue reported on code.google.com by libencha...@gmail.com on 18 Jun 2009 at 8:47
The text was updated successfully, but these errors were encountered:
In your code you're setting the boost on a field "msg_sale_title", but I don't
see this field being set in the
document - I only see "title" and "article" being set. Is this a typo?
I imagine you actually want to set the boost on the "title" field.
Original comment by donovan....@gmail.com on 18 Jun 2009 at 2:17
Original issue reported on code.google.com by
libencha...@gmail.com
on 18 Jun 2009 at 8:47The text was updated successfully, but these errors were encountered: