search for: get_description

Displaying 20 results from an estimated 49 matches for "get_description".

2006 Dec 06
1
Bug and patch for +terms with wildcards
...test.cc =================================================================== --- tests/queryparsertest.cc (revision 7552) +++ tests/queryparsertest.cc (working copy) @@ -655,7 +655,7 @@ qobj = queryparser.parse_query("muscle*", Xapian::QueryParser::FLAG_WILDCARD); TEST_EQUAL(qobj.get_description(), "Xapian::Query((muscle:(pos=1) OR musclebound:(pos=1)))"); qobj = queryparser.parse_query("meat*", Xapian::QueryParser::FLAG_WILDCARD); - TEST_EQUAL(qobj.get_description(), "Xapian::Query()"); + TEST_EQUAL(qobj.get_description(), "Xapian::Query(<n...
2006 May 17
1
Need a little help with the pure Ruby win32-eventlog
Hi all, I''m working on the EventLog#read method for the pure Ruby version of win32-eventlog, but I''m stuck on the get_description private method. Here are the problems: * I don''t think I''m advancing the EVENTLOGRECORD properly between iterations. Take a look at the end of the "while dwread > 0" loop. I get some records, but not all of them. * I''m not sure how to properly populate...
2013 Jun 19
2
Compact databases and removing stale records at the same time
...write to compresion targets again */ c->set_compaction_level(Xapian::Compactor::FULLER); c->set_multipass(true); c->compact(); } catch (const Xapian::Error &err) { syslog(LOG_ERR, "IOERROR: Xapian: caught exception: %s: %s", err.get_context().c_str(), err.get_description().c_str()); r = IMAP_IOERROR; } return r; } /* cb returns true if document should be copied, false if not */ int xapian_filter(const char *dest, const char **sources, int (*cb)(const char *cyrusid, void *rock), void *rock) { int r = 0; int count = 0; try { /* set u...
2006 May 17
3
Need a little help with the pureRubywin32-eventlog
...> > > Hi, > > > > 2006/5/17, Daniel Berger <djberg96 at gmail.com>: > > > Hi all, > > > > > > I''m working on the EventLog#read method for the pure Ruby > > version of > > > win32-eventlog, but I''m stuck on the get_description > private method. > > > > > > Here are the problems: > > > > > > * I don''t think I''m advancing the EVENTLOGRECORD properly between > > > iterations. Take a look at the end of the "while dwread > > > 0" loop. I...
2013 Sep 22
2
How to filter search result with query with has white space.
...indexer.index_text(d.content,1,"content"); indexer.index_text(d.url,1,"url"); doc.add_boolean_term("title"+d.title); db.replace_document(d.url,doc); db.commit(); } catch (const Xapian::Error &e) { std::cout << e.get_description() << std::endl; exit(1); }} void searchData(std::string query_string){ try{ Xapian::Database db("/Users/ramesh/Desktop/xapian"); Xapian::Enquire enquire(db); Xapian::QueryParser qp; Xapian::Stem stemmer("english"); qp...
2013 Sep 22
2
How to filter search result with query with has white space.
...indexer.index_text(d.content,1,"content"); indexer.index_text(d.url,1,"url"); doc.add_boolean_term("title"+d.title); db.replace_document(d.url,doc); db.commit(); } catch (const Xapian::Error &e) { std::cout << e.get_description() << std::endl; exit(1); }} void searchData(std::string query_string){ try{ Xapian::Database db("/Users/ramesh/Desktop/xapian"); Xapian::Enquire enquire(db); Xapian::QueryParser qp; Xapian::Stem stemmer("english"); qp...
2007 Dec 04
4
eventlog
Hi, Hm, the string inserts are different, too. Any encoding issues? Your user name uses extended ASCII, too, right? Not sure if that''s significant or not. I''ve cc''d the win32utils-devel list to see if anyone has any ideas. Thanks, Dan botp wrote: > On 12/4/07, Daniel Berger <djberg96 at gmail.com> wrote: >> Can you tell us which record numbers in
2010 Nov 02
1
How to make QueryParser select entire word like "H.O.T"
...r qp; qp.add_prefix("Singer", "S"); Xapian::Query query = qp.parse_query("Singer:s.h.e", Xapian::QueryParser::FLAG_PARTIAL|Xapian::QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS |Xapian::QueryParser::FLAG_PHRASE ); cout << "Performing query `" << query.get_description() << "'" << endl; ----------------------Code end--------------------------------------------------------------- See the output from the stdio, ----------------------Output begin--------------------------------------------------------- Performing query `Xapian::Query((Ss:...
2012 Apr 09
1
a small patch
hello all, A small patch that fixes Query get_description in testsute3.py. see the attachment. -- Best Regards, Xiaona Han -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120409/18a07efb/attachment-0001.html> -------------- next part -------------- A n...
2015 May 04
2
Make Xapian accept all characters
Ok, but suppose I have a complex query, something like "(a OR b) AND NOT c OR ##". Do I have to parse the query by myself? > Date: Mon, 4 May 2015 03:03:24 +0100 > From: olly at survex.com > To: lautaromedrano at hotmail.com > CC: xapian-discuss at lists.xapian.org > Subject: Re: [Xapian-discuss] Make Xapian accept all characters > > On Sun, May 03, 2015 at
2010 Jun 24
1
Quickest way to retrieve data for a large match set?
...y to precalculate these at indexing time, alas). Currently fetching the document data for the results has become something of a bottleneck (typical searches my generate 50 - 500 matches, but some return more than 5000). Code is something like: ... print STDERR "Query = ", $q->get_description, "\n" if $self->debug; my $e = $self->index->enquire ($q); #my $hits = $e->get_mset(0, $self->index->get_doccount, $self->index- >get_doccount); my (@hits) = $e->matches (0, $self->index->get_doccount, $self->index- >get_doccount); my...
2013 Sep 02
2
having trouble with prefixes
I've got a small test database setup with one record. $ delve -r 1 -V /tmp/1/ Values for record #1: 0:DD4F2162FFFF0E43741A4A1C2B8EC0E7 1:./Text_page_scan_2.jpg 2:jpg 3:.jpg Term List for record #1: E:.jpg P:./Text_page_scan_2.jpg Q:DD4F2162FFFF0E43741A4A1C2B8EC0E7 T:jpg The terms were added with lines like this: doc.add_term(string("P:") + path); Problem is, I can't seem to
2018 Nov 30
1
Xapian Benchmark results
...); indexer.set_document(doc); indexer.index_text(line_string); database.add_document(doc); file.close(); } database.commit(); cout <<"count::" <<database.get_doccount() <<endl; } catch (const Xapian::Error &e) { cout << e.get_description() << endl; exit(1); } } int main(int argc, char **argv) { vector<thread> threads; int doc_ct = 0; char queries[][20] = {"Probation","Volleyball"}; int th = 0; vector<string> documents[NUM_THREADS]; Xapian::WritableDatabase db...
2006 Nov 30
1
PHP / XapianQueryParser
...an.php";$db = "db/sitedb"; $odb = new XapianDatabase($db);$ostem = new XapianStem("en");$oquery = new XapianQuery("visual");$oenquire = new XapianEnquire($odb);$oenquire->set_query($oquery);echo "<pre>"; echo "Perform: " . $oquery->get_description() . "<br/>";$omset = $oenquire->get_mset(0, 10); echo "Matches: " . $omset->get_matches_estimated() . "<br/>"; $oiter = new XapianMSetIterator();$oiter = $omset->begin(); while (!$oiter->equals($omset->end())){ $odoc = $oiter->get_document...
2006 Dec 14
11
Tweak to win32-eventlog
...ere the description wasn''t being returned properly. At the moment, if there''s no event associated with the event id, then the description is empty. However, it turns out that there can still be associated information about the event. So, I propose the following tweak to the get_description private method: # If FormatMessage() returned 0, but va_list isn''t empty, # then return the va_list instead. if val == 0 && !va_list.empty? buf = va_list.join("\n") end Where ''val'' is the result of the FormatMessage() call. I''ve attached...
2006 Feb 07
1
Omega
Are there any options to forming queries with Omega? For instance can you specify a proximity search like "file near 5 manager"? If so, where might I find this documented? I don't see it in the docs directory. Thanks Jim.
2007 Dec 05
21
Fwd: win32/process problem
Any ideas? ---------- Forwarded message ---------- From: Christian Kerth <christian.ke... at dynamicmedia.at> Date: Dec 5, 8:28 am Subject: win32/process problem To: comp.lang.ruby I have an application that consists of serveral independent parts. I want to use the Windows Process API to spawn the different processes. e.g. require ''rubygems'' require
2007 May 15
0
[PATCH] Small fix to the host.get_name_description call
...7 +941,7 @@ class XendAPI(object): XendNode.instance().set_name(new_name) return xen_api_success_void() def host_get_name_description(self, session, host_ref): - return xen_api_success(XendNode.instance().description) + return xen_api_success(XendNode.instance().get_description()) def host_set_name_description(self, session, host_ref, new_desc): XendNode.instance().set_description(new_desc) return xen_api_success_void() _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/x...
2011 May 15
0
Fwd: FLAG_PARTIAL and subset words
...replies on-list so everyone can help and benefit. Begin forwarded message: > From: Greg <freediving at gmail.com> > >>> We're using it this way: >>> xq = qp.ParseQuery(query, (uint)Xapian.QueryParser.feature_flag.FLAG_PARTIAL); >>> The op is AND and the get_description is fairly long (I removed some >>> of it since there is a limit of 40k in the list) > > Here is the full description: > http://pastebin.com/raw.php?i=BryC3q5q -- James Aylett talktorex.co.uk - xapian.org - devfort.com - spacelog.org
2005 Jun 09
1
Query parser and stemming of norwegian letters
...d(_sXapian)<< endl; pqp->set_stemmer(stem); pqp->set_database(*_pdatabase); pqp->set_default_op(Query::OP_AND); //Set the enquire Query p=pqp->parse_query(_sXapian); cout << " Query " << string(bufSL) << p.get_description() << endl; --- gives the follwing output DEBUG h?y Query norwegianXapian::Query((ha:(pos=1) AND y:(pos=2))) the ? is unicode c3b8 Why does the queryparser produce something different than a direct stemmer call ? Best regards, IB