Page 2 of 3

Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 6:29 am
by Deon

Nope
Neither
return('{"Client":{$regex: "'+ value +'", $option: 'i'}}');
or this works
return('{"Client":{$regex: "'+ value +'", $options: 'i'}}');

The error
Uncaught SyntaxError: Unexpected string


Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 6:30 am
by Deon

I have tried quite a few options. There seems to be no consistency in Java syntax translations.


Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 6:31 am
by Deon

This works but has no effect on case and is useless
{"Client":{$regex: "'+ value +'", $option: "i"};


Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 1:05 pm
by Deon

Any news on this. Thx


Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 1:12 pm
by Kateryna Grynko

Hi Deon,

Sorry, no news, working on it.


Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 1:46 pm
by Deon

Apologies for my impatience :)


Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 6:05 pm
by Maryna Brodina

Hello! Please try this way prereturn '{"Client":{$regex: "'+ value +'", $options: "i"}}';/pre


Query service with Request that gets information based on part of the data field

Posted: Mon Nov 25, 2013 6:57 pm
by Deon

Maryna........ you are brilliant! Thank you.


Query service with Request that gets information based on part of the data field

Posted: Sat Dec 14, 2013 5:59 am
by Ketan Patil

it is working fine, but not searching in between string
for example
if datafield = "mother father"
above js searches for mother only

how to search father


Query service with Request that gets information based on part of the data field

Posted: Mon Dec 16, 2013 10:24 am
by Maryna Brodina

Hello! Not sure I understand the question. Could you clarify what string have you set for search and what strings should have been found, but they're not?