/* * call-seq: * index_reader.term_positions_for(field, term) -> TermDocEnum * * Same as IndexReader#term_docs_for(field, term) except the TermDocEnum will * also allow you to scan through the positions at which a term occurs. See * TermDocEnum for more info. */ static VALUE frb_ir_t_pos_for(VALUE self, VALUE rfield, VALUE rterm) { IndexReader *ir = (IndexReader *)DATA_PTR(self); return frb_get_tde(self, ir_term_positions_for(ir, frb_field(rfield), StringValuePtr(rterm))); }