public class XMLQueryParser
extends java.lang.Object
VirtualSearchFieldMapper
Constructor and Description |
---|
XMLQueryParser() |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.search.Query |
getLuceneQuery(org.dom4j.Element queryElement,
org.apache.lucene.queryParser.QueryParser queryParser)
Gets the Lucene Query representation for the given XML Query starting at the Query element.
|
static org.apache.lucene.search.Query |
getLuceneQuery(java.io.File queryXml,
org.apache.lucene.queryParser.QueryParser queryParser)
Gets the Lucene Query representation for the given XML Query.
|
static org.apache.lucene.search.Query |
getLuceneQuery(java.lang.String queryXml,
org.apache.lucene.queryParser.QueryParser queryParser)
Gets the Lucene Query representation for the given XML Query.
|
static org.apache.lucene.search.Query |
getLuceneQuery(java.net.URL queryXml,
org.apache.lucene.queryParser.QueryParser queryParser)
Gets the Lucene Query representation for the given XML Query.
|
static java.lang.String |
getQueryString(java.lang.String queryXml,
org.apache.lucene.queryParser.QueryParser queryParser)
Gets the Lucene query String representation for the given XML Query.
|
public static java.lang.String getQueryString(java.lang.String queryXml, org.apache.lucene.queryParser.QueryParser queryParser) throws java.lang.Exception
queryXml
- A XML QueryqueryParser
- QueryParser used to parse Lucene syntax based queries and tokenize the textjava.lang.Exception
- If errorpublic static org.apache.lucene.search.Query getLuceneQuery(java.io.File queryXml, org.apache.lucene.queryParser.QueryParser queryParser) throws java.lang.Exception
queryXml
- A file containing an XML QueryqueryParser
- QueryParser used to parse Lucene syntax based queries and tokenize the textjava.lang.Exception
- If errorpublic static org.apache.lucene.search.Query getLuceneQuery(java.net.URL queryXml, org.apache.lucene.queryParser.QueryParser queryParser) throws java.lang.Exception
queryXml
- A URL to a file containing an XML QueryqueryParser
- QueryParser used to parse Lucene syntax based queries and tokenize the textjava.lang.Exception
- If errorpublic static org.apache.lucene.search.Query getLuceneQuery(java.lang.String queryXml, org.apache.lucene.queryParser.QueryParser queryParser) throws java.lang.Exception
queryXml
- An XML QueryqueryParser
- QueryParser used to parse Lucene syntax based queries and tokenize the textjava.lang.Exception
- If errorpublic static org.apache.lucene.search.Query getLuceneQuery(org.dom4j.Element queryElement, org.apache.lucene.queryParser.QueryParser queryParser) throws java.lang.Exception
queryElement
- A dom4j representation of the Query elementqueryParser
- QueryParser used to parse Lucene syntax based queries and tokenize the textjava.lang.Exception
- If error