search for: termlist_begin

Displaying 7 results from an estimated 7 matches for "termlist_begin".

2023 Dec 01
1
termlist_begin ordering in older versions
Hey, I noticed commit 145503bbe4a5bf702cd13cb2e592111e8d7ca89a (Reimplement Database and WritableDatabase, 2017-10-05) added the phrase: "The terms are returned ascending string order (by byte value)" for termlist_begin. Is that also true for the 1.4 (or even 1.2) series? Also, is allterms_begin also the same w.r.t. ordering? Thanks.
2012 Jul 09
1
Question about Document and TermIterator.get_termfreq()
Hi, While porting the unit tests from perl for the node binding I noticed a test failed. I basically create a document, add a few terms, add the document to a database and then call doc->termlist_begin().get_termfreq(). This throws "Can't get term frequency from a document termlist which is not associated with a database." What I think this means is that I can not call get_termfreq from a TermIterator obtained from a document (this is only available for a TermIterator obtained from...
2016 May 05
2
GSoC 2016 - Introduction
Hello, Thanks James for the reply. That cleared a few things out. Apologies for replying late because of exams going on. I was going through the previous clustering API to understand how it worked and it seems like the the approach for construction of the termlists which are used for distance metrics use TF-IDF weighting with cosine similarity, which is very similar to the approach I would need
2015 Jul 23
1
Get term from document by position
...ow positions of the terms that i want to display. But how to get the terms itself? Xapian::Document does not have something like GetTermByPosition(int position). Currently i am iterating through all of the terms, than through all of the positions, something like this: for (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;...
2023 Aug 28
1
DatabaseModifiedError while iterating on mset
Olly Betts <olly at survex.com> wrote: > On Wed, Aug 23, 2023 at 01:53:27PM +0000, Eric Wong wrote: > > I'm already retrying the ->get_mset operations; but now I'm > > wondering where I'd hit DatabaseModifiedErrors while inside a > > Xapian::MSetIterator loop. > > > > I assume ->get_document is a place where it gets thrown; > > but
2009 Jan 27
1
Segmentation fault in MSetIterator get_weight
Hi, I'm using xapian with c# and mono and i'm having a segfault in get_weight. When i print the index variable, the value is clearly too high. I think something write over it. Do you have any idea on how i could trace the beginning of the segmentation fault ? Thanks, -- Yann
2009 Feb 12
1
problem when using xapian's static libs in windows
...scall Xapian::TermIterator::operator*(void)const " (??DTermIterator at Xapian@@QBE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ) libinmemory.lib(inmemory_database.obj) : error LNK2019: ????????? "public: class Xapian::TermIterator __thiscall Xapian::Document::termlist_begin(void)const " (?termlist_begin at Document@Xapian@@QBE?AVTermIterator at 2@XZ)??????? "private: void __thiscall InMemoryDatabase::finish_add_doc(unsigned int,class Xapian::Document const &)" (?finish_add_doc at InMemoryDatabase@@AAEXIABVDocument at Xapian@@@Z) ???? libnet.lib(seri...