com.atlassian.fisheye.spi.services
Interface SearchService


public interface SearchService

Provides an API for searching the fisheye repositories


Method Summary
 java.util.List<FileRevisionKeyData> query(java.lang.String repository, java.lang.String query)
          Run an eyeql query against the specified repository.
 java.util.List<FileRevisionKeyData> query(java.lang.String repository, java.lang.String query, int maxResults)
          Run an eyeql query against the specified repository.
 TabularQueryResultData queryAsRows(java.lang.String repository, java.lang.String query)
           
 TabularQueryResultData queryAsRows(java.lang.String repository, java.lang.String query, int maxResults)
           
 

Method Detail

query

java.util.List<FileRevisionKeyData> query(java.lang.String repository,
                                          java.lang.String query,
                                          int maxResults)
Run an eyeql query against the specified repository.

Parameters:
repository - the name of the repository to search
query - the eyeql query to perform. Should not contain a "returns" statement
maxResults - the maximum number of results to return
Returns:
a list of filerevisions matching the query

query

java.util.List<FileRevisionKeyData> query(java.lang.String repository,
                                          java.lang.String query)
Run an eyeql query against the specified repository.

Parameters:
repository - the name of the repository to search
query - the eyeql query to perform. Should not contain a "returns" statement
Returns:
a list of filerevisions matching the query

queryAsRows

TabularQueryResultData queryAsRows(java.lang.String repository,
                                   java.lang.String query,
                                   int maxResults)
Parameters:
repository - the name of the repository to search
query - the eyeql query to perform. Should contain a "returns" statement.
maxResults - the maximum number of results to return
Returns:
the result of the query in tabular form

queryAsRows

TabularQueryResultData queryAsRows(java.lang.String repository,
                                   java.lang.String query)
Parameters:
repository - the name of the repository to search
query - the eyeql query to perform. Should contain a "returns" statement.
Returns:
the result of the query in tabular form