Hi Aaron

There's also the option of using Riddle.escape - so your users won't have to do 
anything, and you can ensure that Sphinx gets the right data. Or in a pinch, 
just do a gsub for hyphens :)

Cheers

-- 
Pat

On 15/07/2011, at 12:32 AM, Aaron Boxer wrote:

> Thanks, Jeremy. That works.
> We are trying to find a solution for our not very tech savvy
> users, so that they don't need to do escapes or quotes.....
> 
> But thanks for the useful advice.
> 
> On Thu, Jul 14, 2011 at 5:55 AM, Jeremy Peterson
> <[email protected]> wrote:
>> I've used quotation marks to allow hyphens, specifically for account
>> numbers (1234-6789).  For my advanced search, all account numbers get
>> special handling.
>> 
>> Jeremy
>> 
>> On Thursday, July 14, 2011, Pat Allan <[email protected]> wrote:
>>> Hi Jorge
>>> 
>>> There's no way to not escape hyphens, I'm afraid (at least, if you're using 
>>> extended and boolean match modes - but could apply in all situations). It's 
>>> used by Sphinx as a NOT operator for boolean queries, hence the need to 
>>> escape it.
>>> 
>>> Cheers
>>> 
>>> --
>>> Pat
>>> 
>>> On 14/07/2011, at 5:00 AM, Jorge wrote:
>>> 
>>>> Hello,
>>>> 
>>>> Currently, I have to escape the dash character in order to treat
>>>> it as a regular character.  Eg   UIO\-123
>>>> 
>>>> I am using the utf-8 character set. I have tried add a dash to
>>>> my charset_table, but it doesn't seem to work.
>>>> 
>>>> Any help would be greatly appreciated.
>>>> 
>>>> Thanks!
>>>> 
>>>> --
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "Thinking Sphinx" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to 
>>>> [email protected].
>>>> For more options, visit this group at 
>>>> http://groups.google.com/group/thinking-sphinx?hl=en.
>>>> 
>>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Thinking Sphinx" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group at 
>>> http://groups.google.com/group/thinking-sphinx?hl=en.
>>> 
>>> 
>> 
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Thinking Sphinx" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/thinking-sphinx?hl=en.
>> 
>> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to