News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How to display search results in desktop app

Started by spiros, November 28, 2020, 05:11:54 AM

Previous topic - Next topic

spiros

I wonder what would be the way to display search results from SMF in a Windows application. It would basically have to search the subject field and parse it according to some rules. To give you some context, I partly use SMF subjects as a dictionary, in the format term -> translation1, translation2....

Would one need an API for this or exporting the subject field and preprocessing it on SMF in order to be searchable via the desktop app?

As far as API is concerned I have found these:
https://github.com/GeekyTheory/Automatic-API-REST
https://github.com/erazorbg/smfapi
https://wiki.simplemachines.org/smf/SMF_API

vbgamer45

I would probably modify the search page to add an function to it to export the data in format that is readable such as xml.
You would then call the search request from the desktop app and dd xml=1 to the url SMF would see that in the url then display the data as xml and then you can process on the desktop app.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

spiros

Right, could there be some sort of access limitation (i.e. number of requests) set up, say some sort of SMF Membergroup permission-based quota?

Another point, is that results should be really fast to be of any use (SMF search is using Sphinx); that is why I thought of some sort of function searching only the subjects or some sort of daily export of subjects in a different table/format for easier manipulation.

Advertisement: