\AlchemyService
A service that uses the AlchemyAPI to retrieve information about content
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
Synopsis
class AlchemyService
{
- // members
- public integer $charLimit = 80;
- public integer $maxKeywords = 15;
- public static integer $max_keywords = 15;
- public AlchemyAPI $alchemy;
- // methods
- public void __construct()
- public void alchemise()
- public string getCategoryFor()
- public array getEntitiesFor()
- public array getKeywordsFor()
- public void getConceptsFor()
- public void getTaxonomyFor()
Members
public
- $alchemy — AlchemyAPI
- $charLimit
—
int
How many characters should content have before it is indexed? - $maxKeywords
- $max_keywords
—
int
How many keywords should we use?
Methods
public
- __construct()
- alchemise() — Automatically extracts and replaces the category, keywords and entities for a data object.
- getCategoryFor()
- getConceptsFor()
- getEntitiesFor()
- getKeywordsFor()
- getTaxonomyFor()