if (null == alias) { // no alias
fb = fb.facetFilter(FilterBuilders.nestedFilter(DocumentPojo.entities_,
FilterBuilders.termFilter(EntityPojo.index_, entIndex)));
}//TESTED
else {
QueryFilterBuilder qfb = null;
if ((null != alias.getSemanticLinks()) && !alias.getSemanticLinks().isEmpty()) {
BoolQueryBuilder qb = QueryBuilders.boolQuery();
for (String textAlias: alias.getSemanticLinks()) {
qb = qb.should(CrossVersionQueryBuilders.matchPhraseQuery(DocumentPojo.fullText_, textAlias));
}