public SlopQueryNodeBuilder() {
// empty constructor
}
public NodePhraseQuery build(QueryNode queryNode) throws QueryNodeException {
final SlopQueryNode phraseSlopNode = (SlopQueryNode) queryNode;
if (phraseSlopNode.getValue() != 0)
throw new NotImplementedException("Slop Queries not supported in Siren yet");
return (NodePhraseQuery) phraseSlopNode.getChild().getTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
// TODO: To implement when siren will support slop queries
// SlopQueryNode phraseSlopNode = (SlopQueryNode) queryNode;
//
// Query query = (Query) phraseSlopNode.getChild().getTag(