Displaying 1 result from an estimated 1 matches for "my_term".
Did you mean:
midterm
2015 Jul 23
1
Get term from document by position
...pian_database.termlist_begin(docid);
term != xapian_database.termlist_end(docid); term++)
{
for (pos = xapian_database.positionlist_begin(docid, *term);
pos != xapian_database.positionlist_end(docid, *term); pos++)
{
if ( (*pos) == position_of_my_term)) my_term= *term;
}
}
This does what i want, but this cycle takes too long to run. So, may there is a better approach?