I am trying to pass parameters via URL using: setParams({id:id,model:mod}) , and in the browser’s address bar I see localhost/MVC/query?id=1&model=member. It is successful.
But I want to pass parameters that in url bar will look like: localhost/MVC/query?fq=model: member+model:new_member. I am trying to integrate “Solr” search server, and this is the syntax that supports for filtering queries.
Any help appreciated.
Just take a look at
Button#getHref():and the
toQueryString():So I think you should write a new version for
toQueryString, assumed it istoSolrQueryStringto use:instead of = and+instead of&. Finally you override thegetHref()to usetoSolrQueryStringfunction in your Button. Remember the return should be: