Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setboost no effect in phpsolrclient #11

Closed
GoogleCodeExporter opened this issue Jun 9, 2015 · 2 comments
Closed

setboost no effect in phpsolrclient #11

GoogleCodeExporter opened this issue Jun 9, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

if you are still having issues with boosts, let me know, but since I haven't 
heard from you I'm assuming it was 
just a typo.

Original comment by donovan....@gmail.com on 26 Jun 2009 at 10:28

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant