Tests. TODO solving failure with the faceted search with 2 subjects

This commit is contained in:
Porras-Bernardez 2024-06-19 16:21:31 +02:00
parent 95c7c8ba7b
commit 32f743c04e
3 changed files with 32 additions and 14 deletions

View file

@ -131,7 +131,7 @@ export default class SearchViewComponent extends Vue {
this.activeFilterCategories = new ActiveFilterCategories();
this.facets = new FacetResults();
this.searchTerm = suggestion;
console.log("ONSEARCH > suggestion: ", suggestion);
// console.log("ONSEARCH > suggestion: ", suggestion);
// /* 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 */
@ -157,10 +157,10 @@ export default class SearchViewComponent extends Vue {
// console.log(this.results);
// console.log(this.numFound);
// console.log(res.hits.hits);
// console.log(res.hits.total.value);
// console.log(res.hits.total.value); console.log(res);
// console.log("results:");
console.log(res);
// for (const key in this.results) {
// if (Object.prototype.hasOwnProperty.call(this.results, key)) {
// const element = this.results[key];