On Jan 17, 2007, at 8:23 PM, William Morgan wrote:

> You can split on whitespace, and wrap each token in a WildcardQuery,
> prefixed and suffixed with a star. Unless you're supporting phrase
> queries surrounded by quotes, in which case "split on whitespace"
> becomes something more complicated. Or unless you want to disallow
> wildcards from the user, in which case you'll need to escape * and ?.

Yes, I want to do all of the above :-D

Thanks for all the tips William, I'm going to look into this in the  
future when I make a more refined solution.

In the meantime, I am just going to strip out all special/syntax  
chars from the queries, which I believe will have the behavior I desire.

i want a search for

one-two

to pull up results with

one two
one-two
onetwo


John


_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to