typo in getMoreLikeThis ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

typo in getMoreLikeThis ?

Naomi Dushay
I suspect a ^30 should be a ^300 or vice versa:

In web/sys/SOLR.php, 

in getMoreLikeThis()  method:

       if (isset($record['fulltopic'])) {
            if (is_array($record['fulltopic'])) {
                foreach ($record['fulltopic'] as $topic) {
                    $query .= ' OR fulltopic:("' . $topic . '")^300';
                    $query .= ' OR fulltopic:(' . $topic . ')^250';
                }
            } else {
                $query .= ' OR fulltopic:("' . $record['fulltopic'] . '")^30';
                $query .= ' OR fulltopic:(' . $record['fulltopic'] . ')^250';
            }

note boosting discrepancy between multiple <fulltopic> elements and single <fulltopic> element cases.


Naomi Dushay




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: typo in getMoreLikeThis ?

Andrew Nagy-2

Good catch Naomi - I will submit the change.

 

Andrew

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Naomi Dushay
Sent: Wednesday, July 09, 2008 7:16 PM
To: [hidden email]
Subject: [VuFind-Tech] typo in getMoreLikeThis ?

 

I suspect a ^30 should be a ^300 or vice versa:

 

In web/sys/SOLR.php, 

 

in getMoreLikeThis()  method:

 

       if (isset($record['fulltopic'])) {

            if (is_array($record['fulltopic'])) {

                foreach ($record['fulltopic'] as $topic) {

                    $query .= ' OR fulltopic:("' . $topic . '")^300';

                    $query .= ' OR fulltopic:(' . $topic . ')^250';

                }

            } else {

                $query .= ' OR fulltopic:("' . $record['fulltopic'] . '")^30';

                $query .= ' OR fulltopic:(' . $record['fulltopic'] . ')^250';

            }

 

note boosting discrepancy between multiple <fulltopic> elements and single <fulltopic> element cases.

 

 

Naomi Dushay

 

 

 


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech