Hi Mark,

I’ve just tested this in one of my own apps, and I can get it working if I add 
( and ) to my charset_table - the full value in config/thinking_sphinx.yml is 
the following:

    charset_table: 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, 
U+430..U+44F, U+401->U+451, U+451, (, )

(This is Sphinx’s default, plus the two parentheses). Doing this, then running 
a rebuild, meant I got the expected search results. Is this what you’d tried? 
If it didn’t work, I’m keen to know which version of Sphinx you’re using.

Cheers,

— 
Pat

> On 25 Jun 2017, at 7:16 am, Mark Thomson <nzl...@gmail.com 
> <mailto:nzl...@gmail.com>> wrote:
> 
> I'm trying to figure out how to search on a term that has parentheses in it, 
> e.g. like "abc (def)".
> 
> From Tom Copeland 
> <https://thomasleecopeland.com/2009/01/15/sphinx-riddle-and-escaping-special-characters.html>,
>  I gather these are sphinx special characters and so I've escaped them as he 
> advises. This prevents the search from crashing and is a reasonably workable 
> solution for me, but it's not actually searching on the parenthesis 
> characters, e.g. searching on "abc def" returns an indexed value "abc (def)" 
> as well. So it seems like the parentheses are just being ignored.
> 
> I've also tried adding a char_table that includes the parenthesis characters 
> to thinking_sphinx.yml, but this doesn't seem to have any effect.
> 
> Any clues?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to thinking-sphinx+unsubscr...@googlegroups.com 
> <mailto:thinking-sphinx+unsubscr...@googlegroups.com>.
> To post to this group, send email to thinking-sphinx@googlegroups.com 
> <mailto:thinking-sphinx@googlegroups.com>.
> Visit this group at https://groups.google.com/group/thinking-sphinx 
> <https://groups.google.com/group/thinking-sphinx>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to thinking-sphinx+unsubscr...@googlegroups.com.
To post to this group, send email to thinking-sphinx@googlegroups.com.
Visit this group at https://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to