Class RepositorySearcher
java.lang.Object
org.eclipse.dirigible.repository.search.RepositorySearcher
public class RepositorySearcher extends Object
The Class RepositorySearcher.
-
Field Summary
Fields Modifier and Type Field Description static StringDIRIGIBLE_REPOSITORY_SEARCH_INDEX_LOCATIONThe Constant DIRIGIBLE_REPOSITORY_SEARCH_INDEX_LOCATION.static StringDIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDERThe Constant DIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDER.static StringDIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDER_IS_ABSOLUTEThe Constant DIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDER_IS_ABSOLUTE. -
Constructor Summary
Constructors Constructor Description RepositorySearcher(IRepository repository)Instantiates a new repository searcher. -
Method Summary
-
Field Details
-
DIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDER
The Constant DIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDER.- See Also:
- Constant Field Values
-
DIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDER_IS_ABSOLUTE
The Constant DIRIGIBLE_REPOSITORY_SEARCH_ROOT_FOLDER_IS_ABSOLUTE.- See Also:
- Constant Field Values
-
DIRIGIBLE_REPOSITORY_SEARCH_INDEX_LOCATION
The Constant DIRIGIBLE_REPOSITORY_SEARCH_INDEX_LOCATION.- See Also:
- Constant Field Values
-
-
Constructor Details
-
RepositorySearcher
Instantiates a new repository searcher.- Parameters:
repository- the repository
-
-
Method Details
-
search
Search for a given term in the text files content.- Parameters:
term- the term- Returns:
- the list of the paths of resources which content matching the search term
- Throws:
RepositoryReadException- in case of an error
-
forceReindex
public void forceReindex()Force reindex. -
getRoot
Gets the root.- Returns:
- the root
-