*/
public void doSearch(ISearchQuery searchQuery, final String sortField,
final boolean sortDescMode, final int maxDocNo,boolean doThreadedSearch)
throws RpException {
//obtain a reference to the actual index
IIndexManager indexer = PluginManager.getIndexManager();
if (indexer != null) {
Analyzer analyzer = new StandardAnalyzer();
try {
logger.debug("Index folder is :" + indexer.getRoot());
Directory fsDir = FSDirectory.getDirectory(indexer.getRoot(),
false);
IndexSearcher searcher = new IndexSearcher(fsDir);
logger.info("Search query is " + searchQuery.getQuery());
Query query = QueryParser.parse(searchQuery.getQuery(),