From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31481 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: example queries for nnir Date: Tue, 20 Jun 2000 18:30:40 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035167886 14300 80.91.224.250 (21 Oct 2002 02:38:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:38:06 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id ABE3BD051E for ; Tue, 20 Jun 2000 12:32:23 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id LAC19395; Tue, 20 Jun 2000 11:31:52 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 20 Jun 2000 11:30:55 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA03657 for ; Tue, 20 Jun 2000 11:30:42 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id D444CD051E for ; Tue, 20 Jun 2000 12:31:15 -0400 (EDT) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id SAA06511; Tue, 20 Jun 2000 18:30:41 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id SAA24035; Tue, 20 Jun 2000 18:30:40 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id SAA27669; Tue, 20 Jun 2000 18:30:40 +0200 X-Authentication-Warning: lucy.cs.uni-dortmund.de: grossjoh set sender to Kai.Grossjohann@CS.Uni-Dortmund.DE using -f Original-To: Harry Putnam In-Reply-To: Harry Putnam's message of "20 Jun 2000 04:29:06 -0700" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.0.90 Original-Lines: 127 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31481 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31481 Harry Putnam writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: >=20 > > The to field contains the To and Cc mail headers. The from field > > contains the From mail header. The subject field contains the Subject > > mail header. > >=20 > > The global field contains all of the above headers, plus the body of > > each message. >=20 > So, there is no way to search just the body by itself? This depends on the format file. In a `region...end' stanza, the BOTH keyword means that the words are index both in the given field and in the global field. If you put LOCAL there, the words are only put into the given field, and not in the global field. Btw, I think `stemming SOUNDEX' is not a working combination. Use just `SOUNDEX' instead. > [...] snipped good examples >=20 >=20 > > > ;; . . . . . . . . . . . . . . . . . . . . . . . . . . . . The > > > ;; second variable to set is `nnir-search-engine'. Choose one of the > > > ;; engines listed in `nnir-engines'. > >=20 > > I have now included an explicit pointer to the variable > > documentation. I have also tried to beef up the documentation for > > nnir-engines. Did it help? New version on ftp server, > > ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/emacs/ >=20 > Checking that version, I see what is changed but it still doesn't make > it clear how using the engines in that alist might look when included > in nnir variables. Are you saying that (setq nnir-search-engine 'wais) and (setq nnir-search-engine 'imap) is not sufficient and that I should include the full list of allowed symbols? > Going form this: > nnir-engines's value is=20 > ((glimpse nnir-run-glimpse > ((group . "Group spec: "))) > (wais nnir-run-waissearch nil) > (excite nnir-run-excite-search nil) > (imap nnir-run-imap nil)) >=20 > to this: > (setq nnir-search-engine 'glimpse) >=20 > Is not apparent from nnir.el comments, unless you know a little lisp. Hm. Okay. Hm. What can I do? List the allowed symbols for the default value in the doc string? Tell the user what to type to learn which symbols are allowed? > Including some simple examples of actual settings might be more > usefull. I have tried to do this in the doc string for nnir-engines. > Indicating which are default setting would help too. Nnir.el does > this for the some of the variables pertaining to glimpse and wais > already. If you don't change a variable, type C-h v to get the default value. If you change a variable, M-x find-variable RET might help. > ## variable nnir-mail-backend example settings: >=20 > ## If gnus-secondary-select-methods is set to only one of either nnml > ## or nnmh backend then nnir will default to that backend (Kai, is > ## this true?) No, the default value for nnir-mail-backend is (nnml ""), regardless of the gnus-secondary-select-methods setting. Should I change the default value to be (car gnus-secondary-select-methods)?=20 > ## If more than one mail backend is used then nnir-mail-backend can be=20 > ## set like this (must be nnml or nnmh): > ## (setq nnir-mail-backend '(BACKEND "NAME")) <=3D=3D(probably not accu= rate) > ## (setq nnir-mail-backend '(nnml "my-server")) Also see the documentation for nnir-mail-backend which says that it might be best to get the value from gnus-secondary-select-methods. You must include _all_ server parameters. > ## variable nnir-search-engines example settings: > ## (setq nnir-search-engine 'BACKEND) > ## (setq nnir-search-engine 'glimpse) > ## (setq nnir-search-engine 'wais) I have included `wais' and `imap' examples in the documentation for nnir-engines.=20 > Similar examples following the sections on glimpse and wais, in there > `setq' format for inclusion in gnus would be nice too: > Something like: >=20 > (setq nnir-glimpse-remove-prefix "/PATH/DIRECTORY/") >=20 > or >=20 > (setq nnir-glimpse-home "/PATH/DIRECTORY/"/ I have now tried to do this. What do you think about the new version? > It would also be handy if all nnir vars were settable with M-x > set-variable so users wouldn't have to go to customize or know the > elisp code to eval with M-:=20 Oops. > That would make it easier to experiment with various settings for a > given session. M-x customize is fairly cumbersome. Right. kai --=20 I like BOTH kinds of music.