|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Searcher
Searcher interface.
| Method Summary | |
|---|---|
void |
exportResults(File outputFile)
This method can be used for exporting results |
int |
freq(List<Hit> patternsToSearchIn,
String annotationType,
boolean inMatchedSpan,
boolean inContext)
|
int |
freq(List<Hit> patternsToSearchIn,
String annotationType,
String feature,
String value,
boolean inMatchedSpan,
boolean inContext)
|
int |
freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType)
|
int |
freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType,
String featureName)
|
int |
freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType,
String featureName,
String value)
|
Map<String,Integer> |
freqForAllValues(List<Hit> patternsToSearchIn,
String annotationType,
String feature,
boolean inMatchedSpan,
boolean inContext)
|
Map<String,List<String>> |
getAnnotationTypesMap()
Returns the Map containing all possible values of AnnotationTypes and Feature Values for each of this annotationType. |
Hit[] |
getHits()
return the last seen hits once again |
String[] |
getIndexedAnnotationSetNames()
Returns an containing names of the indexed annotation sets * Each entry has the following format: corpusName;annotationSetName where, the corpusName is the name of the corpus the annotationSetName belongs to. |
Map<String,Object> |
getParameters()
Returns the recently set parameters |
String |
getQuery()
Query to search |
Hit[] |
next(int numberOfHits)
Return the next numberOfHits -1 indicates all |
boolean |
search(String query,
Map<String,Object> parameters)
Search method that allows searching |
| Method Detail |
|---|
boolean search(String query,
Map<String,Object> parameters)
throws SearchException
query - numberOfPatterns - patternWindow -
SearchExceptionString getQuery()
Hit[] next(int numberOfHits)
throws SearchException
SearchExceptionMap<String,List<String>> getAnnotationTypesMap()
String[] getIndexedAnnotationSetNames()
throws SearchException
corpusName;annotationSetName
where, the corpusName is the name of the corpus the annotationSetName belongs to.
indexLocation -
SearchExceptionMap<String,Object> getParameters()
void exportResults(File outputFile)
outputFile - Hit[] getHits()
int freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType,
String featureName,
String value)
throws SearchException
SearchExceptionStatsCalculator#freq(String, String, String, String, String)
int freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType)
throws SearchException
SearchExceptionStatsCalculator#freq(String, String, String, String, String)
int freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType,
String featureName)
throws SearchException
SearchExceptionStatsCalculator#freq(String, String, String, String, String)
int freq(List<Hit> patternsToSearchIn,
String annotationType,
String feature,
String value,
boolean inMatchedSpan,
boolean inContext)
throws SearchException
SearchExceptionStatsCalculator#freq(List, String, String, String, boolean, boolean)
int freq(List<Hit> patternsToSearchIn,
String annotationType,
boolean inMatchedSpan,
boolean inContext)
throws SearchException
SearchExceptionStatsCalculator#freq(List, String, String, String, boolean, boolean)
Map<String,Integer> freqForAllValues(List<Hit> patternsToSearchIn,
String annotationType,
String feature,
boolean inMatchedSpan,
boolean inContext)
throws SearchException
SearchExceptionStatsCalculator#freq(List, String, String, boolean, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||