iamshah99 / sphinxsearch

Automatically exported from code.google.com/p/sphinxsearch
GNU General Public License v2.0
1 stars 0 forks source link

EscapeString is not working correctly on Java client #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Try to escape a string containing \\" sequences like 

\\"Yeah 
Yeah Yeahs\\"

and try to send a sphinx query '@t_text \\"Yeah yeah yeahs\\"   @ch_text 
(ch_id_15)', that contains that 
escaped string to the sphinx server. 

An error occurs. It looks like: 
 remote query error: index main_2: syntax error, unexpected TOK_FIELDLIMIT near '
  @ch_text (ch_id_15)';

After passing any string to the SphinxClient.EscapeString(String) method, we 
should get a string, that will 
be accepted in the shpinx query.

The issue is to be seen on the revision 2006 at least.

Original issue reported on code.google.com by valgog on 19 Jan 2010 at 12:13