Displaying 20 results from an estimated 31 matches for "msetiterator".
Did you mean:
psetiterator
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
2012 Mar 16
1
MSetIterator::get_percent Shows Increased Values When Using Query::OP_FILTER
...some rather odd behavior with respect to the match percent that
is returned when performing a simple query. It appears that the addition of
a filter to a simple OR query will not affect the weight of the match, but
will increase the percent of the resulting match. According to the
documentation for MSetIterator::get_percent (
http://xapian.org/docs/apidoc/html/classXapian_1_1MSetIterator.html#99514c11a9291175d20fafa73a0839fd)
a match should only get 100% if it matches all of the weight contributing
terms in the query.
I've attached a test case that shows the odd behavior that I am seeing. I
had a dat...
2013 Aug 21
2
Perl interface isn't working in 1.2.x
...39;s a string. The @matches
array has 5 empty hashes where as on the working system the hash shows a
number instead of the string "empty hash" as in the debugging output
from perl -d
main::(gs.cgi:39): foreach my $match ( @matches ) {
DB<2> x @matches
0 Search::Xapian::MSetIterator=HASH(0xe0ae90)
empty hash
1 Search::Xapian::MSetIterator=HASH(0xe0af08)
empty hash
2 Search::Xapian::MSetIterator=HASH(0xe0af80)
empty hash
3 Search::Xapian::MSetIterator=HASH(0xe0aff8)
empty hash
4 Search::Xapian::MSetIterator=HASH(0xe0b070)
empty hash
I noticed...
2017 Dec 15
5
How to get the serialise score returned in Xapian::KeyMaker->operator().
HI, all,
I am a user of Xapian, and now I have a problem in using it.
After using boolean terms to get some candidates of documents (still too much), we want sorted them by self-defined function which is used in Xapian::KeyMaker->operator(). But how can I get the serialise score in Xapian::MSetIterator object.
c++ code likes this:
class SortKeyMaker : public Xapian::KeyMaker {
std::string operator()(const Xapian::Document& doc) const {
double score = self-defined-function(doc);
return Xapian::sortable_serialise(score); // How get this value in Xapian::MSetIterator
}
--
发自我的网...
2015 Jun 10
1
make check xapian-bindings-1.2.21 & Search-Xapian-1.2.21.0
...iled tests: 10-14
Files=1, Tests=60, 0 wallclock secs ( 0.16 usr 0.01 sys + 0.23 cusr 0.02 csys = 0.42 CPU)
Result: FAIL
FAIL: t/parser.t
./t/search.t .. 1/122
# Failed test 'match set returns consistent start point'
# at ./t/search.t line 74.
# got: 'Search::Xapian::MSetIterator=HASH(0x971d2e0)'
# expected: 'Search::Xapian::MSetIterator=HASH(0x971d400)'
# Failed test 'match set iterator increments correctly'
# at ./t/search.t line 76.
# got: 'Search::Xapian::MSetIterator=HASH(0x971d2e0)'
# expected: anything else
# Faile...
2017 Dec 16
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
On Fri, Dec 15, 2017 at 03:10:48PM +0800, 张少华 wrote:
> After using boolean terms to get some candidates of documents (still
> too much), we want sorted them by self-defined function which is used
> in Xapian::KeyMaker->operator(). But how can I get the serialise score
> in Xapian::MSetIterator object.
>
> c++ code likes this:
>
> class SortKeyMaker : public Xapian::KeyMaker {
> std::string operator()(const Xapian::Document& doc) const {
> double score = self-defined-function(doc);
> return Xapian::sortable_serialise(score); // How get this value in Xa...
2023 Aug 23
1
DatabaseModifiedError while iterating on mset
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 once a document is retrieved, can iterating through
terms in one document (using TermIterator) also throw DB modified?
I'm dumping multiple terms per-document to a stream.
While retrying ->get_document seems straightforw...
2023 Aug 27
1
DatabaseModifiedError while iterating on mset
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 once a document is retrieved, can iterating through
> terms in one document (using TermIterator) also throw DB modified?
If you only look at the terms and wdfs then you could only get
DatabaseModifiedError on...
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 once a document is retrieved, can iterating through
> > terms in one document (using TermIterator) also throw DB modified?
>
> If you only look at the terms and wdfs then you could only...
2017 Dec 18
2
How to get the serialise score returned in Xapian::KeyMaker->operator().
...ts wrote:
> Unfortunately the sort key isn't currently exposed via the public API.
> It's available internally and it seems like it ought to be accessible
> but there's no accessor method for it - I can add one but that won't
> help for existing releases.
I've added MSetIterator::get_sort_key() to master in
9f807b83ab61a943a355a9ff6733299eab8e6bb1, and backported to the
RELEASE/1.4 branch in 93ea6216fe8141d6223c869c6bccb039414db0fa, so this
should be in 1.4.6 when that's released.
Cheers,
Olly
2013 Jun 19
2
Compact databases and removing stale records at the same time
...an::MSet matches = enquire.get_mset(0, srcdb->get_doccount());
/* create a destination database */
Xapian::WritableDatabase *destdb = new Xapian::WritableDatabase(dest, Xapian::DB_CREATE_OR_OPEN);
destdb->begin_transaction();
/* copy all matching documents to the new DB */
for (Xapian::MSetIterator i = matches.begin() ; i != matches.end() ; ++i) {
Xapian::Document doc = i.get_document();
std::string cyrusid = doc.get_value(SLOT_CYRUSID);
if (cb(cyrusid.c_str(), rock)) {
destdb->add_document(doc);
count++;
/* commit occasionally */
if (count % 1024 == 0) {
destd...
2009 Feb 12
1
problem when using xapian's static libs in windows
...alueIterator::operator=(class Xapian::ValueIterator const &)" (??4ValueIterator at Xapian@@QAEXABV01@@Z) ????
libnet.lib(serialise.obj) : error LNK2019: ????????? "public: __thiscall Xapian::MSet::~MSet(void)" (??1MSet at Xapian@@QAE at XZ)??????? "public: __thiscall Xapian::MSetIterator::~MSetIterator(void)" (??1MSetIterator at Xapian@@QAE at XZ) ????
libnet.lib(serialise.obj) : error LNK2019: ????????? "public: char const * __thiscall Xapian::Error::get_error_string(void)const " (?get_error_string at Error@Xapian@@QBEPBDXZ)??????? "class std::basic_string<c...
2014 Apr 13
2
Adding an external library to Xapian
...::Trie trie;
// Parse the query string to produce a Xapian::Query object.
Xapian::QueryParser qp;
Xapian::Stem stemmer("english");
@@ -88,19 +107,19 @@
cout << matches.get_matches_estimated() << " results found:" << endl;
for (Xapian::MSetIterator i = matches.begin(); i != matches.end(); ++i) {
- cout << i.get_rank() + 1 << ": " << i.get_percent() << "% docid=" << *i
- << " [" << i.get_document().get_data() << "]\n\n";
+ cout << i.get_rank() +...
2014 Apr 13
2
Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following
it the error that occurred:
http://pastebin.com/cVJrjUZX
On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote:
> On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com>
> wrote:
>
> > A linker error is encountered even after following the above
2006 May 10
1
Documentation for the PHP OO wrapper
...used to generate the doc for the PHP
wrapper can probably be re-used to generate specific doc for the other
bindings. So a generic solution would be better. An xml version of
xapian.i ?
Any ideas ?
PS : by working on this, I found some errors which can perhaps be
corrected in the sources :
- MSetIterator::get_document documents an "it" parameter which does not
exist
- some methods arguments are not documented and don't have a name in
doxygen output (search for '$arg' in the html file)
- some methods of the wrapper can not be used from PHP
(Enquire:register_match_decider for...
2007 Jan 13
1
xapian query group result by domain?
Hi
I know it might not possible, but just want to try my luck.
say, for a web search engine backed by xapian....
Is it possible to group the result by domain just like google's [ More
results from www.abc.com ],
when there are more than 1 results from the same domain?
Or, anyone have some work around to do it?
Cheers
Andrey Kong
2018 Jan 15
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
...tunately the sort key isn't currently exposed via the public API.
>> It's available internally and it seems like it ought to be accessible
>> but there's no accessor method for it - I can add one but that won't
>> help for existing releases.
>
>I've added MSetIterator::get_sort_key() to master in
>9f807b83ab61a943a355a9ff6733299eab8e6bb1, and backported to the
>RELEASE/1.4 branch in 93ea6216fe8141d6223c869c6bccb039414db0fa, so this
>should be in 1.4.6 when that's released.
>
>Cheers,
> Olly
2016 Jul 30
2
Letor: returning MSet after re-ranking
>
>
> I'd prefer to avoid adding things to the public API that don't get
> used by end users. However because LTR is outside the Xapian build
> tree, we can't easily give it privileged access to Xapian internals.
>
Sorry for a delayed response.
The way I was thinking of performing reranking with updated weights was to
add a class MSetRanker (basically containing a
2015 Jan 16
2
Question on "single writer, multiple reader"
...enquire.set_query(query);
// Get the top 10 results of the query
Xapian::MSet matches = enquire.get_mset(0, 10);
// Display the results
cout << matches.size() << " results found" << endl;
for (Xapian::MSetIterator i = matches.begin(); i !=
matches.end(); ++i) {
Xapian::Document doc = i.get_document();
cout << "Document ID " << *i << "\t" <<
i.get_percent() << "% [" <<...
2013 Mar 05
1
Remote database & local database, and adding new weight found vtable error
Hello, guys.
Q1.
now I have load all the docid and its document data into a dictionary for
faster loading data instead of calling
Xapian::MSetIterator i;
i.get_document().get_data();
but I was happened to discover that the dictionaries got by such two method
were different:
both methods use DB1, DB2
method 1:
Xapian::Database db = Xapian::Database(the path of DB1);
Xapian::Database db2 = Xapian::Database(the path of DB2);
db.add_database(db2...