In article <3C853431(_dot_)7080100(_at_)rovia(_dot_)com>
carlos(_at_)rovia(_dot_)com writes:
nmz_add_index("C:\\namazu\\index");
NmzResult result = nmz_search("Some query");
for (int i = 0; i < result.num; i++)
{
nmz_data current_hit = result.data[i];
char title[512] = "";
nmz_get_field_data(current_hit.idxid, current_hit.docid,
"title", title);
}
I think you need to call nmz_free_hlist(nmz_data_current_hit) on each
iteration, and need to call nmz_free_internal() before second try.
I don't know it causes such probrem or not, but it would be better.
--
NOKUBI Takatsugu
E-mail: knok(_at_)daionet(_dot_)gr(_dot_)jp
knok(_at_)namazu(_dot_)org / knok(_at_)debian(_dot_)org