Package | Description |
---|---|
gate.creole.annic.apache.lucene.search | |
gate.creole.annic.lucene |
Modifier and Type | Class and Description |
---|---|
class |
BooleanQuery
A Query that matches documents matching boolean combinations of other
queries, typically
TermQuery s or PhraseQuery s. |
class |
PhraseQuery
A Query that matches documents containing a particular sequence of terms.
|
class |
TermQuery
A Query that matches documents containing a term.
|
Modifier and Type | Field and Description |
---|---|
Query |
BooleanClause.query
The query whose matching documents are combined by the boolean query.
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.combine(Query[] queries)
Expert: called when re-writing queries under MultiSearcher.
|
Query |
Weight.getQuery()
The query that this concerns.
|
static Query |
Query.mergeBooleanQueries(Query[] queries)
Expert: merges the clauses of a set of BooleanQuery's into a single
BooleanQuery.
|
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
BooleanQuery.rewrite(IndexReader reader) |
Query |
Searchable.rewrite(Query query)
Expert: called to re-write queries into primitive queries.
|
Query |
IndexSearcher.rewrite(Query original) |
Modifier and Type | Method and Description |
---|---|
void |
BooleanQuery.add(Query query,
boolean required,
boolean prohibited)
Adds a clause to a boolean query.
|
Query |
Query.combine(Query[] queries)
Expert: called when re-writing queries under MultiSearcher.
|
Explanation |
Searchable.explain(Query query,
int doc)
Returns an Explanation that describes how
doc scored against
query . |
Explanation |
IndexSearcher.explain(Query query,
int doc) |
static Query |
Query.mergeBooleanQueries(Query[] queries)
Expert: merges the clauses of a set of BooleanQuery's into a single
BooleanQuery.
|
Query |
Searchable.rewrite(Query query)
Expert: called to re-write queries into primitive queries.
|
Query |
IndexSearcher.rewrite(Query original) |
Hits |
Searcher.search(Query query)
Returns the documents matching
query . |
Hits |
Searcher.search(Query query,
Filter filter)
Returns the documents matching
query and
filter . |
void |
Searchable.search(Query query,
Filter filter,
HitCollector results)
Lower-level search API.
|
void |
IndexSearcher.search(Query query,
Filter filter,
HitCollector results) |
TopDocs |
Searchable.search(Query query,
Filter filter,
int n)
Expert: Low-level search implementation.
|
TopDocs |
IndexSearcher.search(Query query,
Filter filter,
int nDocs) |
TopFieldDocs |
Searchable.search(Query query,
Filter filter,
int n,
Sort sort)
Expert: Low-level search implementation with arbitrary sorting.
|
TopFieldDocs |
IndexSearcher.search(Query query,
Filter filter,
int nDocs,
Sort sort) |
Hits |
Searcher.search(Query query,
Filter filter,
Sort sort)
Returns documents matching
query and filter ,
sorted by sort . |
void |
Searcher.search(Query query,
HitCollector results)
Lower-level search API.
|
Hits |
Searcher.search(Query query,
Sort sort)
Returns documents matching
query sorted by
sort . |
Constructor and Description |
---|
BooleanClause(Query q,
boolean r,
boolean p)
Constructs a BooleanClause with query
q , required
r and prohibited p . |
Modifier and Type | Method and Description |
---|---|
Query[] |
QueryParser.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.
|
Modifier and Type | Method and Description |
---|---|
TopDocs |
LuceneIndexSearcher.search(Query query,
Filter filter,
int nDocs)
Searches through the lucene index and returns an instance of TopDocs.
|
Copyright © 2024 GATE. All rights reserved.