forked from geolba/tethys.frontend
OpenSearch progress. Stetic changes in result list. Faceted search not started
This commit is contained in:
parent
9b8b2bd5ac
commit
a70e454cbc
6 changed files with 41 additions and 179 deletions
|
@ -122,11 +122,15 @@ export default class SearchViewComponent extends Vue {
|
|||
|
||||
// Method to trigger a search
|
||||
onSearch(suggestion: Suggestion | string): void {
|
||||
console.log("ONSEARCH");
|
||||
|
||||
// Reset active filter categories and facet results
|
||||
this.activeFilterCategories = new ActiveFilterCategories();
|
||||
this.facets = new FacetResults();
|
||||
|
||||
this.searchTerm = suggestion;
|
||||
console.log("This.searchterm: ", this.searchTerm);
|
||||
|
||||
/* Perform faceted search. The method returns an Observable, and the code subscribes to this Observable to handle the response. If the response is successful, it calls the dataHandler method
|
||||
with the Solr response as a parameter. If there is an error, it calls the errorHandler method with the error message as a parameter */
|
||||
DatasetService.facetedSearch(suggestion, this.activeFilterCategories, this.solr.core, this.solr.host, undefined).subscribe({
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue