Executes a search query using the search plugin @param query The query to execute @return A deferred object to wait on for the results to be fetched @throws IllegalStateException if the search plugin has not been enabled or configured @since 2.0
(final SearchQuery query)
| 2054 | * @since 2.0 |
| 2055 | */ |
| 2056 | public Deferred<SearchQuery> executeSearch(final SearchQuery query) { |
| 2057 | if (search == null) { |
| 2058 | throw new IllegalStateException( |
| 2059 | "Searching has not been enabled on this TSD"); |
| 2060 | } |
| 2061 | |
| 2062 | return search.executeQuery(query); |
| 2063 | } |
| 2064 | |
| 2065 | /** |
| 2066 | * Simply logs plugin errors when they're thrown by attaching as an errorback. |