Example usage for org.apache.lucene.queryparser.flexible.core.messages QueryParserMessages LUCENE_QUERY_CONVERSION_ERROR

List of usage examples for org.apache.lucene.queryparser.flexible.core.messages QueryParserMessages LUCENE_QUERY_CONVERSION_ERROR

Introduction

In this page you can find the example usage for org.apache.lucene.queryparser.flexible.core.messages QueryParserMessages LUCENE_QUERY_CONVERSION_ERROR.

Prototype

String LUCENE_QUERY_CONVERSION_ERROR

To view the source code for org.apache.lucene.queryparser.flexible.core.messages QueryParserMessages LUCENE_QUERY_CONVERSION_ERROR.

Click Source Link

Usage

From source file:org.sindice.siren.qparser.keyword.builders.MatchNoDocsQueryNodeBuilder.java

License:Apache License

public NodeBooleanQuery build(final QueryNode queryNode) throws QueryNodeException {

    // validates node
    if (!(queryNode instanceof MatchNoDocsQueryNode)) {
        throw new QueryNodeException(new MessageImpl(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR,
                queryNode.toQueryString(new EscapeQuerySyntaxImpl()), queryNode.getClass().getName()));
    }/*from  ww w  . ja  v  a 2  s.com*/

    return new NodeBooleanQuery();
}