equal
deleted
inserted
replaced
58 return q_; |
58 return q_; |
59 } |
59 } |
60 void add(auto_ptr<Query> q) { |
60 void add(auto_ptr<Query> q) { |
61 if ( q.get() ) { |
61 if ( q.get() ) { |
62 if ( bq_ ) { |
62 if ( bq_ ) { |
63 bq_->add( q.release(), true, true, false ); |
63 bq_->add( q.release(), true, false, false ); |
64 } else { |
64 } else { |
65 if ( q_.get() ) { |
65 if ( q_.get() ) { |
66 auto_ptr<BooleanQuery> bq( new BooleanQuery() ); |
66 auto_ptr<BooleanQuery> bq( new BooleanQuery() ); |
67 bq_ = bq.get(); |
67 bq_ = bq.get(); |
68 bq_->add( q_.release(), true, false, false ); |
68 bq_->add( q_.release(), true, false, false ); |