The Search JSON module helps to fetch and search the data from JSON file for a small amount of data. It will retrieve and search the data very fastly. The pagination will work without page refreshing.

If you enable this module, you can use the following area.

- Product listing with search
- Search page for a small size of the website.
- In the future, I will release search JSON file with face set.

Currently, This search JSON module not depends on other drupal modules. In the future, it will work depends on Serialization
and RESTful Web Services modules.

After installing this module, Please enable the Serialization and RESTful Web Services modules and create the custom view for JSON URL

Configuration

1. Creating View

- Enable serialization and RESTful Web Services modules
- Go to admin/structure/views/add and enter view name then select "Provide a REST export" from REST EXPORT SETTINGS.
- Enter REST export path
- In the format section, change the field option. Then select the Title and Body filed. Right now I used two filed statically. In the future, i will change dynamically.
- The JSON URL like [{"title":"hello","body":" welcome"}]

2. Export JSON file.

- Go to admin/config and click "Search JSON Export" from SEARCH AND METADATA or /admin/config/search_json/settings
- Then enter view JSON URL and submit the form.
- The search_json.json file will store to your public folder [sites/default/files/search_json.json]
- Then clear all catch and goto (http://yourdomin.com/searchjson) and see the output.

This module is working with help of angular js library. Currently, i used title and body field only, In the future, I will add the images and links field etc.

For git clone use the below line

git clone --branch 8.x-1.x https://git.drupal.org/sandbox/pvsureshmca/2836660.git search_json

Project name: https://www.drupal.org/sandbox/pvsureshmca/2836660

I really appreciated your feedback. Please review this module.

Thank you.

CommentFileSizeAuthor
result.png160.01 KBpvsureshmca
Export json settings.png36.68 KBpvsureshmca
view.png93.5 KBpvsureshmca
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pvsureshmca created an issue. See original summary.

pvsureshmca’s picture

Issue summary: View changes
pvsureshmca’s picture

Issue summary: View changes
PA robot’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

visabhishek’s picture

Title: Search JSON » [D8]Search JSON
Issue summary: View changes
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxpvsureshmca2836660git

I'm a robot and this is an automated message from Project Applications Scraper.

pvsureshmca’s picture

Issue summary: View changes
PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.