2

I have a website built on drupal with search functionality. When I search for example for "test" the link of the search is displayed like search/node/test

Is there any possibility that if I call search/node/test?json or search/node/test/json the returned page would be plain text in json format of node ids ?

1

Try Services Search & Services module. Using these module you can expose search results as JSON.

Another option is Views Datasource module. Construct a page view which accepts search term as an argument and displays search results in JSON format.

  • the problem is i want the search results to display in same order as on the main site (clients u know) so by using another module rather than the search module , search results might change (too many filters applied) – Ronan Dejhero Oct 31 '12 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.