search for: positionlist_begin

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

2015 Jul 23
1
Get term from document by position
...=================================================== When displaying search results, i would like to to display a piece of the document that is related to the search string (snippet). I have the following idea: 1) first i have to find the positions of the search terms by using Xapian::TermIterator::positionlist_begin() iterator. 2) second, i have to display terms that have positions that are close to the search term position (several terms from the left, and several terms from the right of the search term) So, i know positions of the terms that i want to display. But how to get the terms itself? Xapian::Docum...
2023 Mar 28
1
uncaught C++ exception from Perl Search::Xapian XS?
...> > Using `eval' from Perl5 doesn't seem effective in catching it. > > I'm using postlist_begin, postlist_end and ++ to iterate a > PositionIterator, and reading XS/*Iterator.xs, I see the XS > wrappers are missing: FWIW, postlist_begin gives you a PostingIterator (positionlist_begin would give you a PositionIterator). > try { } catch { handle_exception(); } > > in several places. Not sure if that's it or if something > else (I know C, but am not remotely fluent in C++). That is indeed what's missing. I'm open to clean patches to address issues in...
2023 Mar 27
1
uncaught C++ exception from Perl Search::Xapian XS?
I'm using Search::Xapian XS from Debian stable and I'm getting what appears to be an unwrapped C++ exception: terminate called after throwing an instance of 'Xapian::DatabaseModifiedError' Using `eval' from Perl5 doesn't seem effective in catching it. I'm using postlist_begin, postlist_end and ++ to iterate a PositionIterator, and reading XS/*Iterator.xs, I see the
2010 Jan 16
1
PHP XapianTermIterator/XapianPositionIterator usage
Hello again, /thanks to Peter for previous response. I've been digging around trying to find sample usage of XapianTermIterator/XapianPositionIterator in PHP. The idea is to code up a test case in PHP to perform snippet extraction (with a possible view to coding a pecl extension in C). I found a C++ sample, but that wasn't much help. I must be dense this morning though, since I
2005 Aug 12
1
error building xapian
...n this scope inmemory_database.cc: In member function 'virtual OmExpandBits InMemoryTermList::get_weighting() const': inmemory_database.cc:223: error: 'db' was not declared in this scope inmemory_database.cc: In member function 'virtual Xapian::PositionIterator InMemoryTermList::positionlist_begin() const': inmemory_database.cc:256: error: 'db' was not declared in this scope inmemory_database.cc: In member function 'virtual LeafPostList* InMemoryDatabase::do_open_post_list(const std::string&) const': inmemory_database.cc:283: error: no matching function for call to ...
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
...: error LNK2001: ????????? "public: unsigned int __thiscall Xapian::TermIterator::get_wdf(void)const " (?get_wdf at TermIterator@Xapian@@QBEIXZ) libinmemory.lib(inmemory_database.obj) : error LNK2019: ????????? "public: class Xapian::PositionIterator __thiscall Xapian::TermIterator::positionlist_begin(void)const " (?positionlist_begin at TermIterator@Xapian@@QBE?AVPositionIterator 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) ???? lib...