Hi Pat,

The escape function dose not really help me. I changed method
initialize() in /vender/plugins/thinking-sphinx/lib/thinking_sphinx/
configuration.rb and it works now.

The following is my change.
self.charset_table  = "0..9, A..Z->a..z,a..z, _, -, /, @, !, $, %, ^,
&, (, ), +, `, ~, #"

All the special characters but "#" in the above setting works. I am
wondering why. Probably sphinx reserved it for some special purpose, I
am guessing. Thanks.

Cheers
--
Pat


On Jan 8, 7:21 pm, Pat Allan <[email protected]> wrote:
> Hi Canvas
>
> You will either need to install riddle from github, or copy the  
> relevant method into your local riddle.rb file, or possibly both. In  
> more recent releases of Thinking Sphinx, Riddle is in a vendor  
> directory within the plugin, but I don't think that was the case when  
> Ed made his fork.
>
> Cheers
>
> --
> Pat
>
> On 09/01/2009, at 7:22 AM, Canvas wrote:
>
>
>
> > Hi Pat, I just installed riddle gem (version 0.9.8.1231.0) and could
> > not find the function neither. And the riddle in Ed's fork I am using
> > is 0.9.8.1371.0. Thanks in advance.
>
> > Cheers
> > -
> > Canvas
>
> > On Jan 8, 3:22 pm, Canvas <[email protected]> wrote:
> >> Hi pat, I am still using Ed's fork. But I could not find  
> >> Riddle.escape
> >> () in the pluggin's lib folder. I checked the version number for the
> >> fork and it's 0.9.9. I am just wondering when you added this function
> >> into module Riddle? Do I have to delete the riddle code in the  
> >> pluggin
> >> and install the newest version of Riddle instead? Thanks in advance.
>
> >> Cheers
> >> -
> >> Canvas
>
> >> On Jan 7, 8:49 pm, Pat Allan <[email protected]> wrote:
>
> >>> Hi Canvas
>
> >>> Try wrapping the queries in Riddle.escape() - this escapes any
> >>> characters Sphinx is fussy about.
>
> >>> Cheers
>
> >>> --
> >>> Pat
>
> >>> On 08/01/2009, at 4:31 AM, Canvas wrote:
>
> >>>> I retried Sample one and two and figured out some rules. If the  
> >>>> search
> >>>> string ends with "-", the record can be found.
>
> >>>> Sample one:
> >>>> -----------------
> >>>> Search By:
> >>>> "*2009-01-05*"              -- not found
> >>>> "*2009-01-05-*"                          --- record found
> >>>> "*2009-01*"                  -- not found
> >>>> "*2009-01-*"                              --- record found
> >>>> -----------------
>
> >>>> This is a really interesting problem.- Hide quoted text -
>
> >>> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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