throw new QueryNodeException(new MessageImpl("Cannot build a MultiPhraseQuery"));
}
// If multiple terms at one single position, this must be a query
// expansion. Perform a OR between the terms.
if (severalTokensAtSamePosition && positionCount == 1) {
return new GroupQueryNode(new OrQueryNode(children));
}
// if several tokens at same position && position count > 1, then
// results can be unexpected
else {
final TokenizedPhraseQueryNode pq = new TokenizedPhraseQueryNode();