Skip to main content.
home | support | download

Back to List Archive

wildcard bug in 2.4.2?

From: Kees Cook <kees(at)not-real.osdl.org>
Date: Thu Jul 22 2004 - 20:35:07 GMT
I can't seem to search using leading wild cards.  For example, I have meta 
fields for parsing email, so that "from" is set for emails.  But I can't 
search as "from=*@osdl.org":

swish-e -w 'from=*@osdl.org' -f /data1/index_swish-e
# SWISH format: 2.4.2
# Search words: from=*@osdl.org
# Removed stopwords: 
err: Wildcard not allowed within a word
.

It doesn't even work without the meta tag:

swish-e -w '*@osdl.org' -f /data1/index_swish-e
# SWISH format: 2.4.2
# Search words: *@osdl.org
# Removed stopwords: 
err: Wildcard not allowed within a word
.


The code that makes this decision isn't very clear to me.  How can I fix 
this?

Thanks!

-- 
Kees Cook
Open Source Development Lab
kees@osdl.org
Received on Thu Jul 22 13:35:35 2004