Andy Millne Posted August 19, 2009 Posted August 19, 2009 I would like to use a single search facility across my site and as such a search API would be very useful. Say a search query is submitted via my site I would like to simmultaneously request search results from IPB/gallery etc and have them returned as an xml result set in order to combine them with my own search results. Is this currently possibly or likely to be considered for a future version?
Josh Posted August 19, 2009 Posted August 19, 2009 That's already possible using the XML skin. If you post to the included xml.php file, rather than index.php, it will return search results formatted in XML. EX: http://forums.invisionpower.com/xml.php?app=core&module=search&do=quick_search&search_filter_app[forums]=1&search_term=search
Andy Millne Posted August 19, 2009 Author Posted August 19, 2009 Well that's a pleasant surprise :) Thanks Josh.There's a tag mismatch on that query though, bug in the output?
Josh Posted August 19, 2009 Posted August 19, 2009 Yeah, it's probably a bug in the xml skin. Report any problems you find like that in the tracker and we'll fix them :)
Management Matt Posted August 20, 2009 Management Posted August 20, 2009 The XML skin is one huge API, really. It's great for syndicating content and completely transforming how you display data.
Andy Millne Posted August 20, 2009 Author Posted August 20, 2009 [quote name='Matt' date='20 August 2009 - 08:40 AM' timestamp='1250754042' post='1846670'] The XML skin is one huge API, really. It's great for syndicating content and completely transforming how you display data. That it is Matt, it's a hidden gem. Well not so hidden really, just overlooked :) p.s. Bug reported and already fixed in 3.0.3
Recommended Posts
Archived
This topic is now archived and is closed to further replies.