Hello,

In Fulton admin interface, you click source editor to edit directly...
I was trying to add one filter function like this..

       "filters": {
             "by_country": "function(doc ,req) { blahblah...... }  "
       }

The thing is that when I tried to enter the function with new line for more 
readable format,
(ex, function (doc,req) {
          blah1
          blah2
         })
 I saw validation error like saying..
"JSON.parse: bad control character in string literal at line 6 column 23 of the 
JSON data"...

1. I don't think I have to enter the function in one line...is there any 
escaped character I need to enter to format the function?

2. I know I can query the filter over http rest api, but is there any way I can 
run the filter function in fulton web interface?

Thanks,

                                          

Reply via email to