public class SearchDAO extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static org.apache.lucene.analysis.Analyzer | analyzer | 
| static String | SEARCH_ACCESS_MANAGER_LIMITED | 
| static String | SEARCH_ACCESS_MANAGER_MORE | 
| static String | SEARCH_ACCESS_MANAGER_WINDOW | 
| static String | SEARCH_LUCENE | 
| Modifier and Type | Method and Description | 
|---|---|
| NodeResultSet | findByQuery(org.apache.lucene.search.Query query,
           int offset,
           int limit)Search by query | 
| NodeResultSet | findBySimpleQuery(String expression,
                 int offset,
                 int limit)Search by simple query | 
| List<String> | findFoldersInDepth(String parentUuid)Find by parent in depth
 
 TODO This cache should be for every user (no pass through access manager) and cleaned
 after a create, move or copy folder operation. | 
| static SearchDAO | getInstance() | 
| List<String> | getTerms(Class<?> entityType,
        String nodeUuid)Get Lucent document terms. | 
| NodeResultSet | moreLikeThis(String uuid,
            int maxResults)Return a list of similar documents. | 
public static final String SEARCH_LUCENE
public static final String SEARCH_ACCESS_MANAGER_MORE
public static final String SEARCH_ACCESS_MANAGER_WINDOW
public static final String SEARCH_ACCESS_MANAGER_LIMITED
public static org.apache.lucene.analysis.Analyzer analyzer
public static SearchDAO getInstance()
public NodeResultSet findByQuery(org.apache.lucene.search.Query query, int offset, int limit) throws ParseException, DatabaseException
ParseExceptionDatabaseExceptionpublic NodeResultSet findBySimpleQuery(String expression, int offset, int limit) throws ParseException, DatabaseException
ParseExceptionDatabaseExceptionpublic List<String> findFoldersInDepth(String parentUuid) throws PathNotFoundException, DatabaseException
public NodeResultSet moreLikeThis(String uuid, int maxResults) throws DatabaseException, PathNotFoundException
public List<String> getTerms(Class<?> entityType, String nodeUuid) throws org.apache.lucene.index.CorruptIndexException, IOException
org.apache.lucene.index.CorruptIndexExceptionIOExceptionCopyright © 2015. All Rights Reserved.