public class CorpusQueryLanguageParser extends Object
Constructor and Description |
---|
CorpusQueryLanguageParser() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultAnnotation() |
static TextPattern |
parse(String query)
Parse a Contextual Query Language query.
|
TextPattern |
parseQuery(String query) |
void |
setAllowSingleQuotes(boolean b)
Allow strings to be quoted using single quotes? [default: yes]
|
void |
setDefaultAnnotation(IndexMetadata indexMetadata,
String fieldName) |
void |
setDefaultAnnotation(String annotation) |
public static TextPattern parse(String query) throws InvalidQuery
query
- our queryInvalidQuery
- on parse errorpublic TextPattern parseQuery(String query) throws InvalidQuery
InvalidQuery
public void setAllowSingleQuotes(boolean b)
b
- whether single quotes are allowedpublic void setDefaultAnnotation(IndexMetadata indexMetadata, String fieldName)
public void setDefaultAnnotation(String annotation)
public String getDefaultAnnotation()
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.