I want to add a query using gr.addEncodedQuery to the existing query. How can I get the existing encoded query into a var?

scott111
Kilo Expert

I want to add a query using gr.addEncodedQuery to the existing query. How can I get the existing encoded query into a var?

1 ACCEPTED SOLUTION

var encodedQuery = gr.getEncodedQuery();

But that's not necessary to add an encoded query to an existing query.

View solution in original post

5 REPLIES 5

Top level 'OR' in an encoded query is achieved with '^NQ'. Just run that query in the screenshot, right click the rightmost breadcrumb, and click copy query. Paste that into your addEncodedQuery() call and you should be good.find_real_file.png