Article View: news.software.readers
Article #179076Re: Full text search for NNTP server
From: Whiskers
Date: Wed, 11 Jan 2006 23:39
Date: Wed, 11 Jan 2006 23:39
74 lines
4574 bytes
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 -- ~~~~~~~~~~
Technical Details
Message-ID:
<mihg93-c9c.ln1@ID-107770.user.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<43c4c3f8$1@epflnews.epfl.ch> <r9hf93-sjc.ln1@ID-107770.user.individual.net> <43c53746$1@epflnews.epfl.ch>Show Full Headers
Complete Article Headers
Message-ID: <mihg93-c9c.ln1@ID-107770.user.individual.net> Subject: Re: Full text search for NNTP server Date: Wed, 11 Jan 2006 23:39:34 +0000 From: Whiskers <catwheezel@operamail.com> References: <43c4c3f8$1@epflnews.epfl.ch> <r9hf93-sjc.ln1@ID-107770.user.individual.net> <43c53746$1@epflnews.epfl.ch> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 74 X-Trace: individual.net Nz4mt2rcvAHQjDlMZKXnMg0L9/quF0Ka018mE9SiJbYfLFDyRM X-Orig-Path: ID-107770.user.individual.net!news X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p& g^8<z5>HA User-Agent: slrn/0.9.8.1 (Linux)