grevious error in SOLR.php

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

grevious error in SOLR.php

Naomi Dushay
Hi Andrew,

I just pulled the latest from svn and found a breaks-all-searches error:  

 in   web/services/sys/SOLR.php.
 in buildQuery() method
  in default case of switch, the 2 penultimate lines are missing their "OR" piece

Code is :

        'genre:("' . str_replace('"', '', $lookfor) . '")^300 OR ' .
        'fullgenre:(' . $andQuery . ')^30' .
        'era:(' . $andQuery . ')^30' .
        'allfields:(' . $orQuery . ')'; // Catch All

Code should be:

        'genre:("' . str_replace('"'''$lookfor) . '")^300 OR ' .
        'fullgenre:(' . $andQuery . ')^30 OR ' .
        'era:(' . $andQuery . ')^30 OR ' .
        'allfields:(' . $orQuery . ')'// Catch All

Or else it doesn't work.

Naomi Dushay




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech