Method | Description | |
---|---|---|
deletePost ( integer $postsID ) | Delete post index. | |
getIndexablePostStati ( ) : array | ||
getIndexablePostTypes ( ) : array | ||
getSearchablePostTypes ( ) : array | ||
indexPost ( integer | object $post ) : array | boolean | ||
indexPosts ( array $posts ) | ||
prepareMeta ( $post ) : array | ||
prepareMetaNum ( array $meta ) : array | ||
preparePost ( $post ) : object | ||
reindex ( integer $site, integer $from, integer $size ) : array | Called in admin to reindex all posts in all blogs. | |
setRefreshInterval ( string $interval = '1s' ) | Set refresh_interval on all indexes. | |
updatePost ( integer $postsID, $data ) | Update post index. |
Method | Description | |
---|---|---|
flush ( ) | Delete existing index, create new index and add mappings. | |
prepareDateTerms ( $post_date_gmt ) : array | ||
prepareTerms ( $post ) : array | ||
reindexBlog ( integer $offset, integer $postsPerPage = 500 ) : array | Reindex all posts in current blog. |
public deletePost ( integer $postsID ) | ||
$postsID | integer |
protected flush ( ) |
public static getIndexablePostStati ( ) : array | ||
return | array |
public static getIndexablePostTypes ( ) : array | ||
return | array |
public static getSearchablePostTypes ( ) : array | ||
return | array |
protected static prepareDateTerms ( $post_date_gmt ) : array | ||
$post_date_gmt | ||
return | array |
public static prepareMetaNum ( array $meta ) : array | ||
$meta | array | |
return | array |
protected static prepareTerms ( $post ) : array | ||
$post | ||
return | array |
public setRefreshInterval ( string $interval = '1s' ) | ||
$interval | string |
public updatePost ( integer $postsID, $data ) | ||
$postsID | integer |