search for: rset

Displaying 20 results from an estimated 72 matches for "rset".

Did you mean: ret
2020 Feb 26
2
[PATCH] lib: command: switch from select() to poll()
...clude <assert.h> -#include <sys/types.h> #include <sys/stat.h> -#include <sys/select.h> +#include <poll.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> @@ -650,37 +649,41 @@ run_child (struct command *cmd) static int loop (struct command *cmd) { - fd_set rset, rset2; - int maxfd = -1, r; + struct pollfd fds[2]; + int r; size_t nr_fds = 0; CLEANUP_FREE char *buf = safe_malloc (cmd->g, BUFSIZ); ssize_t n; - FD_ZERO (&rset); + memset (&fds, 0, sizeof fds); + + fds[0].fd = cmd->errorfd; + fds[1].fd = cmd->outfd; if (c...
2014 Apr 13
2
Adding an external library to Xapian
...t;fstream> + #include <config.h> #include "xapian/enquire.h" @@ -650,7 +654,16 @@ const MatchDecider *mdecider, const MatchDecider *matchspy_legacy) const { - LOGCALL(MATCH, MSet, "Enquire::Internal::get_mset", first | maxitems | check_at_least | rset | mdecider | matchspy_legacy); + /* + cout << "In Enquire::Internal::get_mset" << endl; + // For now usind DB's UUID to record logs + string logname = "../logs/" + db.get_uuid(); + cout << "Log file: " << logname << "Query "...
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
2010 Jul 26
2
related documents
...lated entries X Y Z". I'm aware of the "Morelikethis" Lucene plugin that is supposed to do something like this, by generating a query from a document based on term frequency. Has anyone developed a tool to generate a query from a document? Is there a short-cut one can make with RSets? All the best, Tim.
2013 Mar 03
0
Sent a pull request for testing TradWeight using an Rset.
Hello guys.As discussed on IRC,I have sent a pull request for a test for testing TradWeight with an Rset. On Fri, Mar 1, 2013 at 5:30 PM, <xapian-devel-request at lists.xapian.org>wrote: > Send Xapian-devel mailing list submissions to > xapian-devel at lists.xapian.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.xapian.org/mailman...
2013 Mar 07
4
[PATCH 0/4] Small refactorings of the protocol layer.
As the start of work to add remote support, I'm taking a close look at the protocol layer in the library. These are some small cleanups. Rich.
2020 Feb 26
1
Re: [PATCH] lib: command: switch from select() to poll()
...e <sys/select.h> > > +#include <poll.h> > > > > #ifdef HAVE_SYS_TIME_H > > #include <sys/time.h> > > @@ -650,37 +649,41 @@ run_child (struct command *cmd) > > static int > > loop (struct command *cmd) > > { > > - fd_set rset, rset2; > > - int maxfd = -1, r; > > + struct pollfd fds[2]; > > + int r; > > size_t nr_fds = 0; > > CLEANUP_FREE char *buf = safe_malloc (cmd->g, BUFSIZ); > > ssize_t n; > > > > - FD_ZERO (&rset); > > + memset (&fds,...
2013 Feb 28
0
Implemented test coverage for using TradWeight with an Rset
Hello guys. Olly had pointed out on IRC that there is no test for using the TradWeight scheme with a Rset and had directed me to the test coverage of the TradWeight scheme :- http://lcov.xapian.org/latest/weight/tradweight.cc.gcov.html I have added a test to api_anydb.cc which tests the TradWeight scheme using an Rset . I simply modified the rset2 test in api_anydb.cc so that the Mset is made using t...
2020 Feb 26
0
Re: [PATCH] lib: command: switch from select() to poll()
...t; #include <sys/stat.h> > -#include <sys/select.h> > +#include <poll.h> > > #ifdef HAVE_SYS_TIME_H > #include <sys/time.h> > @@ -650,37 +649,41 @@ run_child (struct command *cmd) > static int > loop (struct command *cmd) > { > - fd_set rset, rset2; > - int maxfd = -1, r; > + struct pollfd fds[2]; > + int r; > size_t nr_fds = 0; > CLEANUP_FREE char *buf = safe_malloc (cmd->g, BUFSIZ); > ssize_t n; > > - FD_ZERO (&rset); > + memset (&fds, 0, sizeof fds); > + > + fds[0].fd = cm...
2012 Dec 13
2
[PATCH 1/2] daemon: NFC Use symbolic names in commandrvf
...} close (fd); - close (stdin_fd[0]); - close (stdin_fd[1]); + close (stdin_fd[PIPE_READ]); + close (stdin_fd[PIPE_WRITE]); } /* Parent process. */ - close (so_fd[1]); - close (se_fd[1]); + close (so_fd[PIPE_WRITE]); + close (se_fd[PIPE_WRITE]); FD_ZERO (&rset); - FD_SET (so_fd[0], &rset); - FD_SET (se_fd[0], &rset); + FD_SET (so_fd[PIPE_READ], &rset); + FD_SET (se_fd[PIPE_READ], &rset); quit = 0; while (quit < 2) { again: rset2 = rset; - r = select (MAX (so_fd[0], se_fd[0]) + 1, &rset2, NULL, NULL, NULL); +...
2013 Jan 09
2
Explanation of how Eset works
Hey guys hi.I am trying to understand how Xapian works .I read the Theoretical Background to Xapian doc and the report by Salton and Jones.I still cant seem to understand how Eset works How exactly does Xapian add terms to expand a query ? Assuming we have a list of the k most important terms, how do we decide which term to add to the query and will be in context with the query ? And to decide r
2011 Feb 25
0
Help with card-sorting experiment
...the data in it, and I currently do this using read.table() PROBLEM 1) When I attempt to do the Adjusted Rand Index calculation I do this: reviewer1 <- read.table(<filename>, sep=",") (they are csv files) . Then I try to make a big matrix by doing this: rset[1] <- reviewer1 rset[2] <- reviewer2 . So when I try to do adjustedRandIndex(rset[1],rset[2]) I get an error message: Error in FUN(X, Y, ...) : comparison of these types is not implemented And If I do this: > rset[1] [[1]] [1] set1 set2 set1 set2 set1 set2...
2006 May 15
1
adaptive query scoring
Hi all Is there a way to do adaptive query scoring (as in popular results returned by a query should get more weight because they are getting clicked more often) in xapian? Is this what the rset class should be used for? I could write a php app to do adaptive results scoring for separate words (just recording the clicks and then have a cron:ned script add weight to the document_id:s for the recorded words), but I don't see a clear way to do this for phrase searches (as in document_id...
2016 Jan 21
0
[PATCH v3 2/6] daemon: Split out command() functions and CLEANUP_* macros into separate files.
...flags, + char const* const *argv) +{ + size_t so_size = 0, se_size = 0; + int so_fd[2], se_fd[2]; + unsigned flag_copy_stdin = flags & COMMAND_FLAG_CHROOT_COPY_FILE_TO_STDIN; + int flag_copy_fd = (int) (flags & COMMAND_FLAG_FD_MASK); + pid_t pid; + int r, quit, i; + fd_set rset, rset2; + char buf[256]; + char *p; + + if (stdoutput) *stdoutput = NULL; + if (stderror) *stderror = NULL; + + if (verbose) { + printf ("commandrvf: stdout=%s stderr=%s flags=0x%x\n", + stdoutput ? "y" : "n", stderror ? "y" : "n"...
2011 Mar 07
0
Fwd: STARTTLS bug - background story
...monstration here focuses on SMTP over TLS only.) The demonstration with SMTP over TLS involves a one-line change in the OpenSSL s_client source code (with OpenSSL 1.0.0, at line 1129 of file apps/s_client.c). Old: BIO_printf(sbio,"STARTTLS\r\n"); New: BIO_printf(sbio,"STARTTLS\r\nRSET\r\n"); With this change, the s_client command sends the plaintext STARTTLS command ("let's turn on TLS") immediately followed by an RSET command (a relatively harmless protocol "reset"). Both commands are sent as plaintext in the same TCP/IP packet, and arrive together...
2004 Aug 23
2
Bug#267587: logcheck-database: Additional rule needed for postfix
Package: logcheck-database Version: 1.2.25 Severity: normal postfix/smtpd\[[0-9]+\]: lost connection after (CONNECT|DATA|RCPT|RSET|EHLO|HELO|MAIL) from Please include the above line in the ignore.d/server/postfix file. That catches messages that occur very often on busy Postfix servers. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel:...
2013 Mar 07
3
[PATCH 0/3] protocol: Abstract out socket operations.
I've been taking a long hard look at the protocol layer. It has evolved over a long time without any particular direction, and the result is, to say the least, not very organized. These patches take a first step at cleaning up the mess by abstracting out socket operations from the rest of the code. The purpose of this is to allow us to slot in a different connection layer under the
2005 Mar 24
3
iconv not working on Sparc Solaris 8
...convert from 646 to UCS2-LE?... no checking can we convert from UTF-8 to UCS2-LE?... no checking can we convert from UTF8 to UCS2-LE?... no configure: WARNING: Sufficient support for iconv function was not found. Install libiconv from http://freshmeat.net/projects/libiconv/ for better cha rset compatibility! I have compiled from source and installed libiconv-1.9.2 in /usr/local but it just does not seem to work. Without iconv Samba will just fill up its log files with character conversion errors and generally not work. I have tried libiconv-1.9.1, libiconv-1.8 and Samba 3.0.11....
2004 Jun 16
3
POP3 LAST command?
Hello, any plans to support this in the future? Seems the inability to use LAST breaks that Yahoo remote mailbox slurper thing, not that I care too much about that, but some mail clients might miss it as well. ;) Regards, Christian Balzer -- Christian Balzer Network/Systems Engineer NOC chibi at gol.com Global OnLine Japan/Fusion Network Services http://www.gol.com/
2009 Nov 25
0
2.0.alpha3 typo patch
--- a/src/lib-storage/mail-storage-service.c +++ b/src/lib-storage/mail-storage-service.c @@ -269,7 +269,7 @@ } } if (*set->mail_privileged_group != '\0') { - if (!parse_uid(set->mail_privileged_group, &rset.privileged_gid)) + if (!parse_gid(set->mail_privileged_group, &rset.privileged_gid)) i_fatal("Unknown mail_gid group: %s", set->mail_gid); } if (*set->mail_access_groups != '\0')