Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Search with Special Characters

From: Peter Karman <peter(at)>
Date: Fri Mar 02 2007 - 13:57:35 GMT
Pranjal Thakur scribbled on 3/2/07 7:41 AM:
> Can I make certain characters mean "or" if used within a search string. For
> example, I would want to look for "A or B" when the search text is "A,B". I
> have comma in my wordchars but I want that to be used only while indexing.
> For searching I want it to be interpreted as "or". Can this be done through
> some configuration setting? Or do I have to parse it manually before I do
> the search?

you would need to parse the search query manually.

  $query =~ s/,/ OR /g;

Peter Karman  .  .  peter(at)
Users mailing list
Received on Fri Mar 2 08:54:27 2007