Groovy Documentation

controllers
Class SearchController

java.lang.Object
  controllers.SearchController

class SearchController

Main controller for searching CoW content.


Property Summary
def HITS_TO_RETRIEVE

number of hits to retrieve in one go

static String INDEXING_TIMESTAMP_PARAMETER_NAME

def MAX_CACHE_SIZE

setting maximum cache size

static String SOLR_CACHE_PARAMETER_NAME

constansts

static def allowedMethods

Request method restrictions.

static Map conf

CoW config

def errMsg

error message

def index

Default search.

def indexingService

Indexing service used for checking the last indexing time stamp

def parser

parser used for validating queries

String querySyntax

The Query syntax summary.

def securityService

Security service used for checking if user is allowed to see a particular page or not

 
Constructor Summary
SearchController()

 
Method Summary
boolean emptyIndex()

checks if the index is empty

boolean query(int offset, QueryResults resultSet)

Query solr and collect hits in the resultSet

String syntax()

Return the Query syntax summary.

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

HITS_TO_RETRIEVE

def HITS_TO_RETRIEVE
number of hits to retrieve in one go


INDEXING_TIMESTAMP_PARAMETER_NAME

static final String INDEXING_TIMESTAMP_PARAMETER_NAME


MAX_CACHE_SIZE

def MAX_CACHE_SIZE
setting maximum cache size


SOLR_CACHE_PARAMETER_NAME

static final String SOLR_CACHE_PARAMETER_NAME
constansts


allowedMethods

static def allowedMethods
Request method restrictions.


conf

static Map conf
CoW config


errMsg

def errMsg
error message


index

def index
Default search.


indexingService

def indexingService
Indexing service used for checking the last indexing time stamp


parser

def parser
parser used for validating queries


querySyntax

String querySyntax
The Query syntax summary.


securityService

def securityService
Security service used for checking if user is allowed to see a particular page or not


 
Constructor Detail

SearchController

SearchController()


 
Method Detail

emptyIndex

boolean emptyIndex()
checks if the index is empty


query

boolean query(int offset, QueryResults resultSet)
Query solr and collect hits in the resultSet


syntax

String syntax()
Return the Query syntax summary.


 

Groovy Documentation