Interface SearchService
public interface SearchService
Please consider using
Service interface for searching within FIRSTspirit.
Use
QueryAgent
.Service interface for searching within FIRSTspirit.
Use
getService(SearchService.class)
to request an instance of this service.- Since:
- 4.0.17
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetSuggestions
(long projectId, @NotNull String indexField, @NotNull String word, @Nullable Language language) Suggest indexed words matching the given one.getSuggestions
(Long projectId, @NotNull String word, @Nullable Language language) Suggest indexed words matching the given one.de.espirit.firstspirit.access.search.ResultProvider
Initiates a search on data with the given request.searchTasks
(Long projectId, de.espirit.firstspirit.access.search.TaskQuery query) Deprecated.since 4.1.10 - no replacement
-
Method Details
-
search
Initiates a search on data with the given request. Returns a provider which can be requested for results.- Parameters:
project
- The project to search inrequest
- The request to find matches for.- Returns:
- The search's result provider.
- Since:
- 4.1.141
-
getSuggestions
@NotNull @NotNull List<String> getSuggestions(Long projectId, @NotNull @NotNull String word, @Nullable @Nullable Language language) Suggest indexed words matching the given one.- Parameters:
projectId
- The project id.word
- The word to look up matches for, must not benull
.language
- The language to look up matches for, ornull
for language independent fields.- Returns:
- A list of matching words.
- Since:
- 5.0
-
getSuggestions
@NotNull @NotNull List<String> getSuggestions(long projectId, @NotNull @NotNull String indexField, @NotNull @NotNull String word, @Nullable @Nullable Language language) Suggest indexed words matching the given one.- Parameters:
projectId
- The project id.indexField
- The index field to look up matches for, must not benull
.word
- The word to look up matches for, must not benull
.language
- The language to look up matches for, ornull
for language independent fields.- Returns:
- A list of matching words. May be empty but never
null
. - Since:
- 5.2.180704
-
searchTasks
@Deprecated Iterable<Task> searchTasks(Long projectId, de.espirit.firstspirit.access.search.TaskQuery query) Deprecated.since 4.1.10 - no replacementGet filtered list of tasks. The returned tasks are ordered by task id.- Parameters:
projectId
- The id of the project.query
- the query object selecting the tasks to return- Returns:
- the returned tasks
- Since:
- 4.0.120
-