Class: PostFilterBuilder

PostFilterBuilder()

Constructor

new PostFilterBuilder()

Can be constructed by { @link WebhoseQuery }
Source:

Methods

author(author) → {this}

Return posts written by a specific author Find posts written by Admin: author:Admin
Parameters:
Name Type Description
author String
Source:
Returns:
Type
this

build() → {PostFilter}

Returns the underlying filter Object
Source:
Returns:
Type
PostFilter
Search for posts that included links to another site. Search for posts that linked to LinkedIn (note that both the slashes and colons are prefixed by a backslash): external_links:https\:\/\/www.linkedin.com*
Parameters:
Name Type Description
eL Array unescaped Links
Source:
Returns:
this
Type
PostFilterBuilder

has_video(has_vide) → {this}

A Boolean parameter that specifies if to search only for posts that contain a video. has_video:true
Parameters:
Name Type Description
has_vide Boolean
Source:
Returns:
Type
this

is_first(is_first) → {this}

A Boolean parameter that specifies if to search only on the first post (exclude the comments) is_first:true
Parameters:
Name Type Description
is_first Boolean
Source:
Returns:
Type
this

language(lang) → {this}

The language of the post. The default is any. Find posts in French or Italian: (language:french OR language:italian)
Parameters:
Name Type Description
lang Array | String
Source:
Returns:
Type
this

published(p, {@link) → {this}

A time-stamp (in milliseconds) enable you to filter posts that were published before or after certain date/time. Return posts published after Thu, 30 Mar 2017 09:16:28 GMT: published:>1490865388
Parameters:
Name Type Description
p number | Date
{@link COMPARATOR}
Source:
Returns:
Type
this

rating(r, {@link) → {this}

For review posts, the rating parameter provides the star rating for the review, a floating number between 0.0 to 5.0. Return all the posts with rating greater than 0: rating:>0
Parameters:
Name Type Description
r Number
{@link COMPARATOR}
Source:
Returns:
Type
this

text(text) → {this}

A textual Boolean query describing the keywords that should (or shouldn’t) appear in the post text. text:(apple OR android)
Parameters:
Name Type Description
text String | Array
Source:
Returns:
Type
this