2017 © Pedro Peláez
 

library gsa-xmlfeed

Feed API for Google Search Appliance (GSA)

image

xp-forge/gsa-xmlfeed

Feed API for Google Search Appliance (GSA)

  • Saturday, January 23, 2016
  • by thekid
  • Repository
  • 6 Watchers
  • 0 Stars
  • 84 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 17 % Grown

The README.md

gsa-xmlfeed

Build Status on TravisCI XP Framework Module BSD Licence Required PHP 5.5+ Supports PHP 7.0+ Supports HHVM 3.4+ Latest Stable Version, (*1)

This API lets you speak to the Google Search Appliance's (GSA) feeding API and manage items on indexes either incrementally or as a whole., (*2)

Usage example:

use com\google\gsa\feed\XmlFeed;
use com\google\gsa\feed\FeedType;
use com\google\gsa\feed\ContentRecord;
use com\google\gsa\feed\FeedConnection;
use com\google\gsa\feed\FeedPublishingException;

$feed= new XmlFeed($this->getClass()->getSimpleName(), FeedType::$INCREMENTAL);
foreach ($records as $record) {
  $feed->addRecord('add', new ContentRecord($record['url'], 'text/html',
    '<html><head>'.
    '<title>'.$record['title'].'</title>'.
    '</head><body>'.
    $record['body'].
    '</body></html>'
  ));
}

try {
  (new FeedConnection('http://gsa-test01.example.com:19900/xmlfeed'))->publish($feed);
} catch (FeedPublishingException $e) {
  // Handle
}

API

$ xp -r com.google.gsa.feed
@FileSystemCL<...\xp\gsa-xmlfeed\src\main\php\>
@FileSystemCL<...\xp\gsa-xmlfeed\src\test\php\>
package com.google.gsa.feed {
  package com.google.gsa.feed.unittest

  public enum com.google.gsa.feed.FeedType

  public abstract class com.google.gsa.feed.Record
  public class com.google.gsa.feed.ContentRecord
  public class com.google.gsa.feed.FeedConnection
  public class com.google.gsa.feed.FeedPublishingException
  public class com.google.gsa.feed.UrlRecord
  public class com.google.gsa.feed.XmlFeed
}

The Versions

23/01 2016

dev-master

9999999-dev http://xp-framework.net/

Feed API for Google Search Appliance (GSA)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

23/01 2016

v3.0.0

3.0.0.0 http://xp-framework.net/

Feed API for Google Search Appliance (GSA)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

12/07 2015

v2.1.2

2.1.2.0 http://xp-framework.net/

Feed API for Google Search Appliance (GSA)

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

12/02 2015

v2.1.1

2.1.1.0 http://xp-framework.net/

Feed API for Google Search Appliance (GSA)

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

11/01 2015

v2.1.0

2.1.0.0 http://xp-framework.net/

Feed API for Google Search Appliance (GSA)

  Sources   Download

BSD-3-Clause

The Requires

 

module xp