Package org.apache.jetspeed.search

Examples of org.apache.jetspeed.search.SearchResultsImpl


                }
               
                resultList.add(result);
            }
           
            results = new SearchResultsImpl(resultList);
        }
        catch (Exception e)
        {
            log.error("Failed to search. ", e);
        }
       
        return (results != null ? results : new SearchResultsImpl(new ArrayList<ParsedObject>()));
    }
View Full Code Here


            }
           
            resultList.add(i, result);
            }
           
            results = new SearchResultsImpl(resultList);
        }
        catch (Exception e)
        {
            log.error("Failed to search. ", e);
        }
        finally
        {
            if (searcher != null)
            {
                try
                {
                    searcher.close();
                }
                catch (IOException ioe)
                {
                    //logger.error("Closing Searcher", ioe);
                }
            }
           
            if (indexReader != null)
            {
                try
                {
                    indexReader.close();
                }
                catch (IOException ioe)
                {
                    //logger.error("Closing Index Reader", ioe);
                }
            }
        }
       
        return (results != null ? results : new SearchResultsImpl(new ArrayList<ParsedObject>()));
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.search.SearchResultsImpl

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.