🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
15 messages
15 total messages Started by franck Wed, 11 Jan 2006 08:32
Full text search for NNTP server
#179040
Author: franck
Date: Wed, 11 Jan 2006 08:32
11 lines
1312 bytes
hi everybody,

Is there any software to allow a full text search (including BODY) on
local newsgroups through HTTP?
Any experience concerning that? Do I need to suck any local news to a
SGBD or something like that?

Thanks for any help.

Regards,
franck
Re: Full text search for NNTP server
#179051
Author: Whiskers
Date: Wed, 11 Jan 2006 14:28
24 lines
1913 bytes
On 2006-01-11, franck <franck.perrot@local> wrote:
> hi everybody,
>
> Is there any software to allow a full text search (including BODY) on
> local newsgroups through HTTP?
> Any experience concerning that? Do I need to suck any local news to a
> SGBD or something like that?
>
> Thanks for any help.
>
> Regards,
> franck

Why 'through HTTP'?  You seem to be using Unix or Linux, so there are 
probably command-line utilities at your disposal for doing exactly what you
want  (as long as you have the requisite permissions of course).

Perhaps a more detailed description of what you want to do would help to 
clarify things.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: Full text search for NNTP server
#179053
Author: franck
Date: Wed, 11 Jan 2006 16:44
22 lines
1993 bytes
> Why 'through HTTP'?  
local users would like to full search on local newsgroups.
So, I thought through HTTP is the easiest way for them as Thunderbird
or Outlook only search on subject header.

> 
> Perhaps a more detailed description of what you want to do would help to 
> clarify things.

so, one user click on an URL, fill a formular by some words. Then web 
server cgi scripts contact a full News text search module (this is
what I need) and return the search result on an HTML page.

I guess a part of the module should suck local news from the News server 
in real time (like a News reader) and create a text index. The other
part of the module should be able to search inside the index and return
the result.


Thx for any help or experience on that,
franck
Re: Full text search for NNTP server
#179076
Author: Whiskers
Date: Wed, 11 Jan 2006 23:39
74 lines
4574 bytes
On 2006-01-11, franck <franck.perrot@local> wrote:
>
>> Why 'through HTTP'?  
> local users would like to full search on local newsgroups.
> So, I thought through HTTP is the easiest way for them as Thunderbird
> or Outlook only search on subject header.
>
>> 
>> Perhaps a more detailed description of what you want to do would help to 
>> clarify things.
>
> so, one user click on an URL, fill a formular by some words. Then web 
> server cgi scripts contact a full News text search module (this is
> what I need) and return the search result on an HTML page.
>
> I guess a part of the module should suck local news from the News server 
> in real time (like a News reader) and create a text index. The other
> part of the module should be able to search inside the index and return
> the result.
>
>
> Thx for any help or experience on that,
> franck

No experience, as such.  

I don't know about all newsreaders, but slrn can search through the bodies 
of all articles in the current newsgroup - using the search.sl macro, or 
the improved new-search.sl.  

If you really want to take things further, rather than introduce your 
users to 'real' news-readers, here are a few thoughts:

Your local newsgroups will be in your local news-server's spool; probably
one file per article, one directory per group.  For example, on my system,
this newsgroup is held as /var/spool/news/news/software/readers/ and each
of the retained articles is a plain-text file with its local article
number (not the unique Message-ID) as the file-name - eg I'm replying to
/var/spool/news/news/software/readers/19691 at present.  The newsgroup 
alt.os.linux.mandriva is in the spool as 
/var/spool/news/alt/os/linux/mandriva/, in the same way.  The syntax may be 
different on non-*nix-type systems, of course.

The basic command for searching for things on Unix or Linux systems is
grep - I forget what it is on Microsoft systems (I haven't used DOS for
years).  Either way a script or a batch file would be able to search the
appropriate directory in the spool for whatever text is being sought, and
then display the article in some suitable way.

Most browsers are perfectly capable of displaying text files, they do not
have to be HTML and you don't have to use the HTTP protocol for it - a URL
such as  <file://localhost/var/spool/news/news/software/readers/19691> is
fine (substitute the name or IP number of the machine carrying the news
spool, if it isn't 'localhost', of course).  The command

Opera --newpage file://localhost/var/spool/news/news/software/readers/19691

displays your article in a new "tab" in my running Opera browser (again, 
the syntax may vary on Windows systems or with other browsers).

Of course, in a 'console' the Linux/Unix command "less", or the DOS/Windows 
"more", can be used to display files directly and allow scrolling up and 
down if the display can't hold the whole thing in one screenful, without
involving any other applications.

If it were me, I'd put a suitable icon or menu-item in the users' desktops 
to 'search for stuff in newsgroups' or whatever you want to label it, to 
run your script or batch-file, rather than mess around trying to do pretty
graphics in HTML just for the sake of it.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: Full text search for NNTP server
#179087
Author: franck
Date: Thu, 12 Jan 2006 09:57
21 lines
2108 bytes
> 
> I don't know about all newsreaders, but slrn can search through the bodies 
> of all articles in the current newsgroup - using the search.sl macro, or 
> the improved new-search.sl.  
I will take a look on that, thx.

> 
> If you really want to take things further, rather than introduce your 
> users to 'real' news-readers, here are a few thoughts:
> 
> Your local newsgroups will be in your local news-server's spool;
not on my news server. Spool looks like binary.

> If it were me, I'd put a suitable icon or menu-item in the users' desktops 
> to 'search for stuff in newsgroups' or whatever you want to label it, to 
> run your script or batch-file, rather than mess around trying to do pretty
> graphics in HTML just for the sake of it.
it will consume too much CPU to search on spool!

franck
Re: Full text search for NNTP server
#179100
Author: Whiskers
Date: Thu, 12 Jan 2006 14:22
36 lines
2499 bytes
On 2006-01-12, franck <franck.perrot@local> wrote:
>
>> 
>> I don't know about all newsreaders, but slrn can search through the bodies 
>> of all articles in the current newsgroup - using the search.sl macro, or 
>> the improved new-search.sl.  
> 
> I will take a look on that, thx.
>
>> 
>> If you really want to take things further, rather than introduce your 
>> users to 'real' news-readers, here are a few thoughts:
>> 
>> Your local newsgroups will be in your local news-server's spool;
> 
> not on my news server. Spool looks like binary.

What news-server is it?

>> If it were me, I'd put a suitable icon or menu-item in the users' desktops 
>> to 'search for stuff in newsgroups' or whatever you want to label it, to 
>> run your script or batch-file, rather than mess around trying to do pretty
>> graphics in HTML just for the sake of it.
> 
> it will consume too much CPU to search on spool!
>
> franck

I think disc access would be the bottle-neck rather than CPU activity.  
That will be the same whether you find a newsreader that can 'search all 
articles in current group' or write a script of your own to do it.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: Full text search for NNTP server
#179101
Author: franck
Date: Thu, 12 Jan 2006 16:00
14 lines
1725 bytes
> What news-server is it?
Dnews.


> I think disc access would be the bottle-neck rather than CPU activity.  
maybe.

> That will be the same whether you find a newsreader that can 'search all 
> articles in current group' or write a script of your own to do it.
but not the same if you search directly on a prepared full index like a
SGBD does.

franck
Re: Full text search for NNTP server
#179115
Author: Whiskers
Date: Thu, 12 Jan 2006 20:28
42 lines
3001 bytes
On 2006-01-12, franck <franck.perrot@local> wrote:
>
>> What news-server is it?
> 
> Dnews.

That seems to use a unique proprietary approach.  Perhaps their own support
team or customers' forums could help you do what you want.  Do the
"WEB-News interface" or "WEB admin tool" mentioned on the company's home
page do anything that would be of use in this context?

How many users and newsgroups are involved?

>> I think disc access would be the bottle-neck rather than CPU activity.  
> 
> maybe.
>
>> That will be the same whether you find a newsreader that can 'search all 
>> articles in current group' or write a script of your own to do it.
> 
> but not the same if you search directly on a prepared full index like a
> SGBD does.
>
> franck

Converting your Dnews files into a non-proprietary form (news spool, 
maildir, mbox, or whatever) and then using some other program to create an
index, is going to involve a great deal of disc and CPU activity.  Is 
'searching across all articles' going to be a sufficiently major feature
for that to make sense?  

Might it not be better to educate your users to include a Keywords header
in their posts?  (I'm pretty sure that OE can't do that, and I suspect that
Thunderbird can't either).  With such headers included in your overview
files, you would only need to search the overview file for each newsgroup,
not each article.  That is the sort of thing the overview file seems to be
meant for.  (I don't know if Dnews has such a thing as an overview file).

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: Full text search for NNTP server
#179122
Author: »Q«
Date: Thu, 12 Jan 2006 22:23
15 lines
1921 bytes
franck <franck.perrot@local> wrote in
<news:43c67e7f$1@epflnews.epfl.ch>:

>> What news-server is it?
>
> Dnews.

IIRC, Maxx (Tech Zero) used to use Dnews, and he likes to fiddle with
things, so he might have some useful thoughts on searching a Dnews
database.  He may not be reading OS X threads, though.

-- 
»Q«
     links to Xnews resources:             New URL.
     <http://xnews.remarqs.net/>           Same old content.
Re: Full text search for NNTP server
#179138
Author: franck
Date: Fri, 13 Jan 2006 09:53
27 lines
2463 bytes
> That seems to use a unique proprietary approach.  Perhaps their own support
> team or customers' forums could help you do what you want.  Do the
> "WEB-News interface" or "WEB admin tool" mentioned on the company's home
> page do anything that would be of use in this context?
no.

> 
> How many users and newsgroups are involved?
not too much but around 5000.


> Converting your Dnews files into a non-proprietary form (news spool, 
> maildir, mbox, or whatever) and then using some other program to create an
> index, is going to involve a great deal of disc and CPU activity.  Is 
> 'searching across all articles' going to be a sufficiently major feature
> for that to make sense?  
The best approach is by using directly the NNTP protocol.
Searching inside body IS a great feature for us and I think for
anybody.

> 
> Might it not be better to educate your users to include a Keywords header
> in their posts?  
Dont dream too much, users dont have time to add keywords in their post.

franck
Re: Full text search for NNTP server
#179139
Author: franck
Date: Fri, 13 Jan 2006 09:56
8 lines
1645 bytes
> IIRC, Maxx (Tech Zero) used to use Dnews, and he likes to fiddle with
> things, so he might have some useful thoughts on searching a Dnews
> database.  He may not be reading OS X threads, though.

any URL?

franck
Re: Full text search for NNTP server
#179140
Author: Karl Kleinpaste
Date: Fri, 13 Jan 2006 14:12
29 lines
3139 bytes
franck <franck.perrot@local> writes:
>> Might it not be better to educate your users to include a Keywords
>> header in their posts?

> Dont dream too much, users dont have time to add keywords in their post.

Don't ask the users to do it; have it done automatically, by INN.

Quick summary: There is code in modern INN which auto-generates
Keywords data out of article bodies.  The code is now almost 10 years
old, but unfortunately very little used.  I have worried greatly over
the resource utilization of grinding article bodies for keywords, but
it has proven over time not to be nearly the resource hog I had
feared.

As articles are received by a Keywords-configured INN, article content
is analyzed for highest-frequency keywords.  The sorted list is used
to create keywords data out of air for overview purposes, or added to
existing (user-supplied) keywords data.  No change to the real header
is done; this is only for the local overview database.

Given a newsreader which comprehends fields beyond Xref in overviews,
one can now score up/down on words that are interesting to you for
some reason.

As a proof case, I became aware of this thread's departure into this
subject because I use Gnus with a scorefile that scores up on Keywords
headers containing "keyword".  The highlighted articles caught my eye
and I found what you had begun to discuss.
Re: Full text search for NNTP server
#179141
Author: Whiskers
Date: Fri, 13 Jan 2006 14:15
31 lines
2533 bytes
On 2006-01-13, franck <franck.perrot@local> wrote:

snip

>> Converting your Dnews files into a non-proprietary form (news spool, 
>> maildir, mbox, or whatever) and then using some other program to create an
>> index, is going to involve a great deal of disc and CPU activity.  Is 
>> 'searching across all articles' going to be a sufficiently major feature
>> for that to make sense?  
> 
> The best approach is by using directly the NNTP protocol.
> Searching inside body IS a great feature for us and I think for
> anybody.

Which could be why that feature is available for slrn and (I'm sure) other 
newsreaders.  OE and Thunderbird are not aimed at 'advanced' users.

>> Might it not be better to educate your users to include a Keywords header
>> in their posts?  
> 
> Dont dream too much, users dont have time to add keywords in their post.
>
> franck

But they do have time to search?  Remind them that they can only get out 
what they put in  ;))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: Full text search for NNTP server
#179142
Author: Whiskers
Date: Fri, 13 Jan 2006 14:47
16 lines
1980 bytes
On 2006-01-13, Karl Kleinpaste <karl@charcoal.com> wrote:

snip

> As a proof case, I became aware of this thread's departure into this
> subject because I use Gnus with a scorefile that scores up on Keywords
> headers containing "keyword".  The highlighted articles caught my eye
> and I found what you had begun to discuss.

Nice feature  :))  Whether the OP is willing to consider changing from 
Dnews to INN is another matter, though.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: Full text search for NNTP server
#179144
Author: »Q«
Date: Fri, 13 Jan 2006 17:57
16 lines
2018 bytes
franck <franck.perrot@local> wrote in
<news:43c77aa8$1@epflnews.epfl.ch>:

>> IIRC, Maxx (Tech Zero) used to use Dnews, and he likes to fiddle
>> with things, so he might have some useful thoughts on searching a
>> Dnews database.  He may not be reading OS X threads, though.
>
> any URL?

dragonfur.ca is his domain, but I don't think that helps.  Pinging him
here is probably the best way to get him.

-- 
»Q«
     links to Xnews resources:             New URL.
     <http://xnews.remarqs.net/>           Same old content.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads