gate.creole.ir
Interface Search

All Known Implementing Classes:
LuceneSearch

public interface Search


Method Summary
 QueryResultList search(String query)
          Search in corpus with this query.
 QueryResultList search(String query, int limit)
          Search in corpus with this query.
 QueryResultList search(String query, int limit, List fieldNames)
          Search in corpus with this query.
 QueryResultList search(String query, List fieldNames)
          Search in corpus with this query.
 void setCorpus(IndexedCorpus ic)
          Sets coprus in which will doing search operations.
 

Method Detail

setCorpus

void setCorpus(IndexedCorpus ic)
Sets coprus in which will doing search operations.


search

QueryResultList search(String query)
                       throws IndexException,
                              SearchException
Search in corpus with this query. Unlimited result length.

Throws:
IndexException
SearchException

search

QueryResultList search(String query,
                       int limit)
                       throws IndexException,
                              SearchException
Search in corpus with this query. Size of the result list is limited.

Throws:
IndexException
SearchException

search

QueryResultList search(String query,
                       List fieldNames)
                       throws IndexException,
                              SearchException
Search in corpus with this query. In each QueryResult will be added values of theise fields. Result length is unlimited.

Throws:
IndexException
SearchException

search

QueryResultList search(String query,
                       int limit,
                       List fieldNames)
                       throws IndexException,
                              SearchException
Search in corpus with this query. In each QueryResult will be added values of theise fields. Result length is limited.

Throws:
IndexException
SearchException