Skip to main content.
home | support | download

Back to List Archive

Re: exact phrase searching

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue May 04 2004 - 20:43:42 GMT
On Tue, May 04, 2004 at 12:40:30PM -0700, Eric Lease Morgan wrote:
> 
> Does swishe support exact phrase searching?
> 
> I have a number of things I've indexed. Tastes great. Less filling. A 
> number of my things are field searchable so valid syntax is title=Time, 
> title=journal of chemistry, or title="journal of chemistry".
> 
> Is there any way I can tell swish to find things like title=time and 
> have it return only the records whose title equals Time and only Time. 

Not really.  But you can look at the property returned:

  swish-e -w title  -x '%t\n' -H0 | grep '^title$'

We have talked about adding flags to say "this is the first|last word
index for this metaname", but it's not a simple change.

-- 
Bill Moseley
moseley@hank.org
Received on Tue May 4 13:43:44 2004