search for: position_of_my_term

Displaying 1 result from an estimated 1 matches for "position_of_my_term".

2015 Jul 23
1
Get term from document by position
...r (term = xapian_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?