Gnus development mailing list
 help / color / mirror / Atom feed
From: Olly Betts <olly@survex.com>
Subject: Re: nnweb + Gmane search
Date: Thu, 9 Feb 2006 10:41:54 +0000 (UTC)	[thread overview]
Message-ID: <loom.20060209T110346-382@post.gmane.org> (raw)
In-Reply-To: <871wyd9m04.fsf@gate450.dyndns.org>

Andreas Seltenreich <andreas+ding@gate450.dyndns.org> writes:
> Great, would it be okay to just set HITSPERPAGE to nnweb-max-hits and
> doing a single request per search? One could also decrease the default
> upper bound of 999 articles, but if this really is an issue, it would
> be better to hardcode a limit for the Gmane part of nnweb, since
> nnweb-max-hits is a user-customizable variable.

I've just tried fetching 1000 matches, and it typically takes several
seconds (note that the "search time" is printed before the records
are read so it under-reports in this case).  

If this proves to be a problem I can easily impose a lower limit on the
server though.

> It wouldn't have to be complete, just enough to present the hits to
> the user plus something in the xref header one can construct links to
> the raw articles from. Currently, nnweb parses the html output and
> generates nov-lines like the following:

Anything you can produce from the HTML output I can produce on the server
of course.

> > Other output formats aren't hard to add, but require me to update
> > two places if anything changes so are a bit more work to support. So
> > I'd prefer something more generic than S-exps.
> 
> Now, does "more generic than S-exps" apply to nov-lines ?

I think so.  NOV is really just tab-separated fields.
dd  Just don't be tempted to work around by running more
searches to fetch 999 if I do...

How does this first attempt look:

http://search.gmane.org/cgi-bin/omega.cgi?FMT=nov&query=gnus+nnweb

The first line is either an error, or:

OK <total (estimated) matches> <number of matches which follow> <match time>

Beware the extra blank line at the end (which is hard to avoid right
now).  And note that encrypted addresses will be missing the
"@public.gmane.org" (because that's how they're stored internally to
save space).

Beware the URL and format may not be stable, so don't build it into
anything just yet.  

Cheers,
    Olly




  reply	other threads:[~2006-02-09 10:41 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-31  9:42 nnweb fix Andreas Seltenreich
2005-12-31 10:48 ` Andreas Seltenreich
2006-01-04  0:18   ` Reiner Steib
2006-01-04 12:25     ` Andreas Seltenreich
2006-01-27  8:35     ` Andreas Seltenreich
2006-01-30 15:08       ` Reiner Steib
2006-01-31  5:48         ` Andreas Seltenreich
2006-01-31 16:03           ` Reiner Steib
2006-01-31 17:06             ` Andreas Seltenreich
2006-02-03 13:20               ` Reiner Steib
2006-02-12  6:34                 ` Andreas Seltenreich
2006-02-13 13:35                   ` Reiner Steib
2006-02-08  5:56             ` nnweb + Gmane search (was: nnweb fix) Andreas Seltenreich
2006-02-08  7:56               ` Olly Betts
2006-02-09  4:47                 ` nnweb + Gmane search Andreas Seltenreich
2006-02-09 10:41                   ` Olly Betts [this message]
2006-02-09 12:28                     ` Olly Betts
2006-02-11  9:23                       ` Andreas Seltenreich
2006-02-13 10:23                         ` Olly Betts
2006-02-14 19:55                           ` Andreas Seltenreich
2006-02-23 17:53                             ` Reiner Steib
2006-02-23 23:04                               ` Olly Betts
2006-02-24  0:49                                 ` Andreas Seltenreich
2006-02-24 12:07                                 ` Olly Betts
2006-02-24 14:31                                   ` Reiner Steib
2006-02-24 15:34                                     ` Olly Betts
2006-02-24 21:58                                     ` Andreas Seltenreich
2006-02-24 23:24                                       ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20060209T110346-382@post.gmane.org \
    --to=olly@survex.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).