searchengine/cpix/cpix/src/prefixqueryparser.cpp
changeset 16 2729d20a0010
parent 14 8bd192d47aaa
equal deleted inserted replaced
14:8bd192d47aaa 16:2729d20a0010
    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 );