Skip to main content.
home | support | download

Back to List Archive

searching for literal ()

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Mon Mar 07 2005 - 20:19:57 GMT
Ok, I give up. I think this is possible but I can't remember how.

I have a word like this: (barfoo)

with ( and ) defined as WordChars. The word gets indexes as (barfoo) but I can't 
search for it. I've tried escaping the () and putting them in double quotes but 
no luck.

Am I imagining that I've done this successfully before?

karpet@cartermac 18% swish-e -T index_all
..
# WordCharacters: !#$%&'()+,-./0123456789:;<=>?@[\]^_abcdefghijklmnopqrstuvwxyz{|}
# BeginCharacters: !#$%&'()+,-./0123456789:;<=>?@[\]^_abcdefghijklmnopqrstuvwxyz{|}
# EndCharacters: !#$%&'()+,-./0123456789:;<=>?@[\]^_abcdefghijklmnopqrstuvwxyz{|}


(barfoo)
  Meta:1 foo.html Freq:1 Pos/Struct:12/9



karpet@cartermac 19% swish-e -w '"(barfoo)"'
# SWISH format: 2.4.3
# Search words: "(barfoo)"
# Removed stopwords:
err: no results
.
karpet@cartermac 20% swish-e -w '(barfoo)'
# SWISH format: 2.4.3
# Search words: (barfoo)
# Removed stopwords:
err: no results
.
karpet@cartermac 21% swish-e -w '\(barfoo\)'
# SWISH format: 2.4.3
# Search words: \(barfoo\)
# Removed stopwords:
err: Syntax error in query (missing end quote or unbalanced parenthesis?)
.


-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
Received on Mon Mar 7 12:20:02 2005