/[drupal]/contributions/modules/apachesolr/Solr_Base_Query.php
ViewVC logotype

Diff of /contributions/modules/apachesolr/Solr_Base_Query.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.4.40.2.6 by robertDouglass, Mon Oct 19 14:32:52 2009 UTC revision 1.1.4.40.2.7 by robertDouglass, Fri Nov 20 14:22:17 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: Solr_Base_Query.php,v 1.1.4.40.2.5 2009/09/15 13:29:39 robertDouglass Exp $  // $Id: Solr_Base_Query.php,v 1.1.4.40.2.6 2009/10/19 14:32:52 robertDouglass Exp $
3    
4  class Solr_Base_Query implements Drupal_Solr_Query_Interface {  class Solr_Base_Query implements Drupal_Solr_Query_Interface {
5    
# Line 450  class Solr_Base_Query implements Drupal_ Line 450  class Solr_Base_Query implements Drupal_
450        $subfq = $data['#query']->rebuild_fq($aliases);        $subfq = $data['#query']->rebuild_fq($aliases);
451        if ($subfq) {        if ($subfq) {
452          $operator = $data['#fq_operator'];          $operator = $data['#fq_operator'];
453          $fq[] = "(" . implode(" {$operator} ", $subfq) .")";          $subqueries = array();
454            foreach ($subfq as $key => $values) {
455              foreach ($values as $value) {
456                $subqueries[] = $value;
457              }
458              $fq['subqueries'][$key] =  " {$data['#q_operataor']} (" . implode(" $operator " , $subqueries) . ")";
459            }
460        }        }
461      }      }
462      return $fq;      return $fq;

Legend:
Removed from v.1.1.4.40.2.6  
changed lines
  Added in v.1.1.4.40.2.7

  ViewVC Help
Powered by ViewVC 1.1.3