public class QueryParser extends Object
Modifier and Type | Field and Description |
---|---|
int |
position |
Constructor and Description |
---|
QueryParser()
Constructor
|
Modifier and Type | Method and Description |
---|---|
List<?>[] |
createTerms(String elem) |
List<String> |
findTokens(String query)
Given a query this method returns tokens.
|
String |
getQueryString(int i)
When user submits an ANNIC query, one or more instances of lucene
queries are created and returned.
|
static boolean |
isValidQuery(String query)
Returns true if the submitted query is valid.
|
static void |
main(String[] args) |
boolean |
needValidation() |
Query[] |
parse(String field,
String query,
String baseTokenAnnotationType,
String corpusID,
String annotationSetToSearchIn)
Given a query, this method parses it to convert it into one or more
lucene queries.
|
public static void main(String[] args)
public static boolean isValidQuery(String query)
public Query[] parse(String field, String query, String baseTokenAnnotationType, String corpusID, String annotationSetToSearchIn) throws SearchException
SearchException
public String getQueryString(int i)
public List<String> findTokens(String query) throws SearchException
SearchException
public List<?>[] createTerms(String elem) throws SearchException
SearchException
public boolean needValidation()
Copyright © 2024 GATE. All rights reserved.