Location: PHPKode > scripts > Fantastic ElasticSearch > wordpress-fantastic-elasticsearch-1.1.2/api/Defaults.php
<?php
namespace elasticsearch;

class Defaults{
	static function fields(){
		return array('post_date', 'post_content', 'post_title');
	}

	static function types(){
		return get_post_types();
	}

	static function taxonomies($types){
		$taxes = array();

		foreach($types as $type){
			$taxes = array_merge($taxes, get_object_taxonomies($type));
		}

		return array_unique($taxes); 
	}
}
?>
Return current item: Fantastic ElasticSearch