Package net.fp.rp.search.plugins

Examples of net.fp.rp.search.plugins.IIndexManager


     */
    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(),
View Full Code Here

TOP

Related Classes of net.fp.rp.search.plugins.IIndexManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.