~zorba-coders/zorba/bug-1189790

« back to all changes in this revision

Viewing changes to src/runtime/full_text/ft_module_impl.cpp

  • Committer: Paul J. Lucas
  • Date: 2013-06-26 03:04:11 UTC
  • Revision ID: paul@lucasmail.org-20130626030411-xtk79m14rocidycc
Intermediate check-in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
  GENV_ITEMFACTORY->createString( item, s );
199
199
  values.push_back( item );
200
200
 
201
 
  s = "stemming=";
 
201
  s = "stemming";
202
202
  GENV_ITEMFACTORY->createString( item, s );
203
203
  keys.push_back( item );
204
204
  s = ft_stem_mode::string_of[ stem_mode ];
638
638
    StateTraitsImpl<TokenizeNodeIteratorState>::getState(
639
639
      plan_state, this->theStateOffset
640
640
    );
641
 
  state->doc_tokens_->reset();
 
641
  FTTokenIterator_t &doc_tokens = state->doc_tokens_;
 
642
  if ( !doc_tokens.isNull() )
 
643
    doc_tokens->reset();
642
644
}
643
645
 
644
646
///////////////////////////////////////////////////////////////////////////////
772
774
    StateTraitsImpl<TokenizeNodesIteratorState>::getState(
773
775
      plan_state, this->theStateOffset
774
776
    );
775
 
  state->doc_tokens_->reset();
 
777
  FTTokenIterator_t &doc_tokens = state->doc_tokens_;
 
778
  if ( !doc_tokens.isNull() )
 
779
    doc_tokens->reset();
776
780
}
777
781
 
778
782
///////////////////////////////////////////////////////////////////////////////