*
* @return <code>TRUE</code> if it matches.
*/
private static boolean matchArticle(String title, String text, boolean pinned, String pattern, boolean pinnedArticlesOnly)
{
StandardArticle article = new StandardArticle(text);
article.setTitle(title);
article.setPinned(pinned);
return SearchEngine.createMatcher(pattern, pinnedArticlesOnly).matches(article);
}