Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Run AjaxSeachPro On An Independent Server for App Access
- This topic has 5 replies, 2 voices, and was last updated 2 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
May 31, 2023 at 10:42 pm #42878
jay
ParticipantI just installed the AjaxSearchPro on my website so I can get familiar with the tool features and configurations. My ultimate goal is to install this tool outside of my website to offload my website and only access the website database remotely on a search. I would like an independent search bar for my mobile App. My questions are:
1) can Ajax Search Pro be installed and run on a separate server and log into a website database to get search content
2) can an App remotely connect to Ajax Search Pro that is running on a server (setup in question 1) to get the search results
3) please provide any suggestions on how this can be made possibleUltimately, businesses that have a website with a growing database of information would like to provide the App user access to the database from the search function.
June 1, 2023 at 3:56 pm #42900Ernest Marcinko
KeymasterHi,
1. I’m afraid no, the content has to be accessible locally, within the current WordPress database.
2. You can get access to the search data via the WP Rest api, there is an endpoint to run queries directed to ajax search pro.I would probably setup the website with the search. On-site search is done with that step. Within the APP I would make a search bar and make it run queries to the rest API endpoint, then process the results within the APP as needed. I suppose mobile APP frameworks (like Unity) have libraries to make fetch requests and process JSON data, that is univerally used. I believe that is the simplest, easiest and most robust solution – as queriying the REST API endpoint will not break with updates.
June 7, 2023 at 9:07 am #42990jay
ParticipantYou cannot access this content.
June 7, 2023 at 1:08 pm #43015Ernest Marcinko
KeymasterThe documentation for the usage is here. It works like any other api, you can use fetch/GET methods to get the information, it’s returned in a standard JSON format. It’s basically the same as any other API, the REST only refers for the structure.
RESTful APIs are the common way to get information, I recommend checking this tutorial to understand what they are for. Don’t worry, it’s nothing fancy, it’s really simple, you will see.
November 4, 2023 at 1:11 am #45896jay
ParticipantI am new at this. I have a friend who is working on an App to get listing content directly from my website database. I want him to create a search bar and provide a dropdown of suggested items from the database when a keyword is typed in. I have the Ajax Search Pro plug-in running and I found the website database. Do you have any simple code (Python or anything language is fine) that he can use to achieve this? I appreciate your generous guidance for a little help. Thanks.
November 6, 2023 at 10:48 am #45908Ernest Marcinko
KeymasterI’m not a python coder myself, but I found this tutorial, which is exactly what you need. That seems to explain how to fetch data via python from a web service.
-
AuthorPosts
- You must be logged in to reply to this topic.