开发者

Automatic sitemap generation

开发者 https://www.devze.com 2023-01-08 11:06 出处:网络
We have recently installed a Google Search Appliance in order to power our internal search (via the Java API), and all seems to be well, however I have a question regarding \'automatic\' site-map gene

We have recently installed a Google Search Appliance in order to power our internal search (via the Java API), and all seems to be well, however I have a question regarding 'automatic' site-map generation that I'm hoping you guys may know the answer to.

We are aware of the GSA's ability to auto-generate site maps for each of its collections, however this process is rather manual, and considering that we have around 10 regional sites that need to be updated as often as possible, its not ideal to have to log into the admin interface on a regular basis in order to export them to the site root where search engines can find them.

Unfortunately there doesn't seem to be any API support for this, at least none that I can find开发者_开发百科, so I was wondering if anyone had any ideas for a solution/workaround or, if all else fails, the best alternative.

At present I'm thinking that if we can get the full index back from the API in the form of a list, then we can write an XML file out using that the old fashioned way using a chronjob or similar, however this seems like a bit of a clumsy solution - any better ideas.


You could try the GSA Admin Toolkit, or simply write some code yourself which just logs in on the administration page and then uses that session to invoke the sitemap export URL (which is basically what the Admin Toolkit does).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号