Gnus development mailing list
 help / color / mirror / Atom feed
From: Andreas Seltenreich <andreas+ding@gate450.dyndns.org>
Subject: Re: nnweb + Gmane search
Date: Thu, 09 Feb 2006 05:47:23 +0100	[thread overview]
Message-ID: <871wyd9m04.fsf@gate450.dyndns.org> (raw)
In-Reply-To: <loom.20060208T084254-673@post.gmane.org>

Olly Betts writes:
> Andreas Seltenreich <andreas+ding@gate450.dyndns.org> writes:
>> If an option to customise the number of results per page could be
>> added to the Xapian-powered search, it'd be as usable via nnweb as the
>> google one.
>
> It already exists, just pass a CGI parameter called HITSPERPAGE.  The value
> is clipped to the range 10-1000.

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.

>> Of course, if there was an option to output the result set as S-exps
>> or nov-lines it'd be even better .
>
> I don't have enough information available to produce nov-lines unless some
> fields aren't required (no message-id for example).

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:

19	(gmane.emacs.gnus.general) Re: nnweb fix (96%)	Andreas Seltenreich <andreas+ding <at> gate450 <dot> dyndns <dot> org>	2006-01-31 05:48:02 GMT	<87vevtxjjv.fsf@totally-fudged-out-message-id>		0	0	Xref: http://article.gmane.org/gmane.emacs.gnus.general/61805/raw	

> 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 :-)? As
stated, it already works by parsing the html output format, but it
kind of pains me to waste bandwidth on useless markup, and those
regexps are likely to break on markup changes.

Thanks!
Andreas



  reply	other threads:[~2006-02-09  4:47 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                 ` Andreas Seltenreich [this message]
2006-02-09 10:41                   ` nnweb + Gmane search Olly Betts
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=871wyd9m04.fsf@gate450.dyndns.org \
    --to=andreas+ding@gate450.dyndns.org \
    /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).