By Ronan Dejhero


2012-10-31 11:10:08 8 Comments

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 comments

@Anil Sagar 2012-10-31 12:02:56

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.

@Ronan Dejhero 2012-10-31 12:09:23

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)

Related Questions

Sponsored Content

1 Answered Questions

Alphabetical sort of Search API results including multiple entity types

  • 2017-02-28 14:25:51
  • saramm1
  • 567 View
  • 2 Score
  • 1 Answer
  • Tags:   8 search

2 Answered Questions

[SOLVED] Search nodes with paragraph

  • 2017-01-05 11:21:19
  • SteveEdson
  • 1998 View
  • 1 Score
  • 2 Answer
  • Tags:   8 search paragraphs

2 Answered Questions

[SOLVED] Search api & solr search => no results found

  • 2013-03-13 12:26:04
  • Vagelis Kostopoulos
  • 4586 View
  • 2 Score
  • 2 Answer
  • Tags:   search

2 Answered Questions

[SOLVED] Search result theming

  • 2012-05-25 12:12:47
  • Artur
  • 1174 View
  • 1 Score
  • 2 Answer
  • Tags:   search

1 Answered Questions

[SOLVED] Search API returning no results even though nodes have been indexed

  • 2015-11-04 14:50:13
  • TopTomato
  • 809 View
  • 0 Score
  • 1 Answer
  • Tags:   search

1 Answered Questions

Search for drupal site using taxonomy

  • 2015-03-20 14:05:01
  • Helena Jidborg Alexander
  • 26 View
  • 1 Score
  • 1 Answer
  • Tags:   taxonomy-terms search

1 Answered Questions

[SOLVED] Search box result => node add (searched string = node title)

  • 2014-01-27 12:40:57
  • jurgen S
  • 73 View
  • 1 Score
  • 1 Answer
  • Tags:   search

Sponsored Content