Tethys Research Data Repository
diff --git a/src/views/search-view/search-view-component.ts b/src/views/search-view/search-view-component.ts
index cf5c3ee..44b72dd 100644
--- a/src/views/search-view/search-view-component.ts
+++ b/src/views/search-view/search-view-component.ts
@@ -3,23 +3,16 @@ import VsInput from "@/components/vs-input/vs-input.vue";
import VsResult from "@/components/vs-result/vs-result.vue";
import FacetCategory from "@/components/face-category/facet-category.vue";
import ActiveFacetCategory from "@/components/active-facet-category/active-facet-category.vue";
-// import { SolrSettings } from "@/models/solr";
-
-import { OpenSettings } from "@/models/solr";
+import { SolrSettings } from "@/models/solr";
// import { DatasetService } from "@/services/dataset.service";
import DatasetService from "../../services/dataset.service";
import { Suggestion, Dataset, SearchType } from "@/models/dataset";
-// import { SolrResponse, FacetFields, FacetItem, FacetResults, FacetInstance } from "@/models/headers";
-// import { SolrResponse, FacetFields, FacetItem, FacetResults, FacetInstance, OpenSearchResponse, HitHighlight } from "@/models/headers";
-import { FacetFields, FacetItem, FacetResults, FacetInstance, OpenSearchResponse, HitHighlight } from "@/models/headers";
+import { SolrResponse, FacetFields, FacetItem, FacetResults, FacetInstance } from "@/models/headers";
import { ActiveFilterCategories } from "@/models/solr";
-// import { SOLR_HOST, SOLR_CORE } from "@/constants";
+import { SOLR_HOST, SOLR_CORE } from "@/constants";
import { IPagination } from "@/models/pagination";
import PaginationComponent from "@/components/PaginationComponent.vue";
-import { OPEN_HOST, OPEN_CORE } from "@/constants";
-
-// Decorate the component and define its name and components
@Component({
name: "SearchViewComponent",
components: {
@@ -30,8 +23,6 @@ import { OPEN_HOST, OPEN_CORE } from "@/constants";
PaginationComponent,
},
})
-
-// Define the SearchViewComponent class
export default class SearchViewComponent extends Vue {
@Prop()
display!: string;
@@ -55,22 +46,16 @@ export default class SearchViewComponent extends Vue {
};
loaded = false;
numFound!: number;
- // private solr: SolrSettings = {
- // core: SOLR_CORE, //"rdr_data", // SOLR.core;
- // host: SOLR_HOST, //"tethys.at",
- // };
-
- private open: OpenSettings = {
- core: OPEN_CORE, //"rdr_data", // SOLR.core;
- host: OPEN_HOST, //"tethys.at",
+ private solr: SolrSettings = {
+ core: SOLR_CORE, //"rdr_data", // SOLR.core;
+ host: SOLR_HOST, //"tethys.at",
+ // core: "test_data", // SOLR.core;
+ // host: "repository.geologie.ac.at",
};
-
+ // private rdrAPI!: DatasetService;
private error = "";
- // Computed property to get search term as string
get stringSearchTerm(): string {
- // console.log("stringSearchTerm:", this.searchTerm);
-
if (typeof this.searchTerm === "string") {
return this.searchTerm;
} else if (this.searchTerm instanceof Suggestion) {
@@ -80,7 +65,6 @@ export default class SearchViewComponent extends Vue {
}
}
- // Method to check if a search term is present
hasSearchTerm(): boolean {
if (typeof this.searchTerm === "string" && this.searchTerm !== "") {
return true;
@@ -93,25 +77,18 @@ export default class SearchViewComponent extends Vue {
// getKeyName(value: string) {
// return Object.entries(Suggestion).find(([key, val]) => val === value)?.[0];
// }
-
- // Method to get enum key by enum value
getEnumKeyByEnumValue
(myEnum: T, enumValue: string): keyof T | null {
const keys = Object.keys(myEnum).filter((x) => myEnum[x] == enumValue);
return keys.length > 0 ? keys[0] : null;
// return keys[0];
}
- // Lifecycle hook: executed before the component is mounted
beforeMount(): void {
- // console.log("beforeMount!");
-
// this.rdrAPI = new DatasetService();
- // Trigger search based on provided display and type props
if (this.display != "" && this.type != undefined) {
const enumKey: "Title" | "Author" | "Subject" | null = this.getEnumKeyByEnumValue(SearchType, this.type);
if (enumKey) {
- const suggestion = new Suggestion(this.display, "NO-IDEA", SearchType[enumKey]);
- // const suggestion = new Suggestion(this.display, "" , SearchType[enumKey]);
+ const suggestion = new Suggestion(this.display, SearchType[enumKey]);
this.onSearch(suggestion);
} else {
this.onSearch(this.display);
@@ -123,327 +100,209 @@ export default class SearchViewComponent extends Vue {
}
}
- // Method to trigger a search
+ // onSearch(term: string): void {
onSearch(suggestion: Suggestion | string): void {
- // console.log("ONSEARCH");
-
- // Reset active filter categories and facet results
+ // let queryOperator;
+ // if (typeof suggestion === "string") {
+ // suggestion = suggestion + "*";
+ // queryOperator = "or";
+ // } else if (suggestion instanceof Suggestion) {
+ // // term = suggestion.value;
+ // queryOperator = "and";
+ // }
+
+ // if (term) {
+ // term = term.trim();
+ // } else {
+ // term = "*%3A*";
+ // }
+
this.activeFilterCategories = new ActiveFilterCategories();
this.facets = new FacetResults();
- this.searchTerm = 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 */
- // DatasetService.facetedSearch(suggestion, this.activeFilterCategories, this.solr.core, this.solr.host, undefined).subscribe({
- // next: (res: SolrResponse) => this.dataHandler(res),
- // error: (error: string) => this.errorHandler(error),
- // });
- DatasetService.facetedSearchOPEN(suggestion, this.activeFilterCategories, this.open.core, this.open.host, undefined).subscribe({
- // next: (res: { datasets: Dataset[], highlights: HitHighlight[] }) => this.dataHandlerOpen(res.datasets, res.highlights),
- next: (res: OpenSearchResponse) => this.dataHandlerOPEN(res),
+ // this.facets = {};
+ this.searchTerm = suggestion;
+ DatasetService.facetedSearch(suggestion, this.activeFilterCategories, this.solr.core, this.solr.host, undefined).subscribe({
+ next: (res: SolrResponse) => this.dataHandler(res),
error: (error: string) => this.errorHandler(error),
});
-
}
- // Handle the search results
- private dataHandlerOPEN(res: OpenSearchResponse, filterItem?: FacetItem): void {
- this.results = res.hits.hits.map(hit => hit._source);
- this.numFound = res.hits.total.value;
+ private dataHandler(res: SolrResponse, filterItem?: FacetItem): void {
+ // this.results = datasets;
+ this.results = res.response.docs;
+ this.numFound = res.response.numFound;
- // console.log("dataHandlerOPEN (results, numFound):");
- // console.log(this.results);
- // console.log(this.numFound);
- // console.log(res.hits.hits);
- // 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];
- // // console.log(element.abstract[0]);
- // // console.log(element.language);
- // console.log(element.server_date_published);
- // }
- // }
-
- this.pagination.total = res.hits.total.value;
- this.pagination.perPage = 10;
- this.pagination.data = this.results;
+ // pagination
+ this.pagination["total"] = res.response.numFound;
+ this.pagination["perPage"] = res.responseHeader.params.rows as number;
+ // this.pagination["currentPage"] = 1;
+ this.pagination["data"] = res.response.docs;
this.pagination.lastPage = Math.ceil(this.pagination.total / this.pagination.perPage);
- // if (res.aggregations) {
- // const facet_fields = res.aggregations;
-
- // let prop: keyof typeof facet_fields;
-
- // for (prop in facet_fields) {
- // const facetCategory = facet_fields[prop];
- // if (facetCategory.buckets) {
- // const facetItems = facetCategory.buckets.map(bucket => new FacetItem(bucket.key, bucket.doc_count));
- // this.facets[prop] = facetItems.filter(el => el.count > 0);
+ // facets
+ // const facet_fields = res.facet_counts.facet_fields;
+ // for (const prop in facet_fields) {
+ // const facetCategory: FacetCategory = facet_fields[prop];
+ // const facetValues = facetCategory.key.values.map((facet_value: any, i: number) => {
+ // if (i % 2 === 0 && typeof facet_value == "string") {
+ // //var rObj = { value: facet, count: facet_fields[prop][i + 1] };
+ // // FiletrItem with value and count
+ // const rObj = new FilterItem(facet_value, facetCategory.key.values[i + 1]);
+ // return rObj;
// }
- // }
+ // });
+ // .filter(function (el: FilterItem) {
+ // return el != null && el.count > 0;
+ // });
+ // //this.facets.push({ filterName: prop, values: facetValues });
+ // this.facets[prop] = facetValues;
// }
- if (res.aggregations) {
- const facet_fields = res.aggregations;
-
- let prop: keyof typeof facet_fields;
-
- // Iterate through facet fields
- for (prop in facet_fields) {
- const facetCategory = facet_fields[prop];
- if (facetCategory.buckets) {
- const facetItems = facetCategory.buckets.map(bucket => new FacetItem(bucket.key, bucket.doc_count));
-
- let facetValues = facetItems.map((facetItem) => {
- let rObj: FacetItem;
- // Check if current facet item matches filter item
- if (filterItem?.val == facetItem.val) {
- rObj = filterItem;
- } else if (this.facets[prop]?.some((e) => e.val === facetItem.val)) {
- const indexOfFacetValue = this.facets[prop].findIndex((i) => i.val === facetItem.val);
- rObj = this.facets[prop][indexOfFacetValue];
- rObj.count = facetItem.count;
- } else {
- // Create new facet item
- rObj = new FacetItem(facetItem.val, facetItem.count);
- }
- return rObj;
- });
-
- // Filter out null values and values with count <= 0
- facetValues = facetValues.filter(el => el.count > 0);
- this.facets[prop] = facetValues;
- }
+ const facet_fields: FacetFields = res.facets;
+ let prop: keyof typeof facet_fields;
+ for (prop in facet_fields) {
+ const facetCategory = facet_fields[prop];
+ if (facetCategory.buckets) {
+ const facetItems: Array = facetCategory.buckets;
+
+ let facetValues = facetItems.map((facetItem) => {
+ let rObj: FacetItem;
+ if (filterItem?.val == facetItem.val) {
+ rObj = filterItem;
+ } else if (this.facets[prop]?.some((e) => e.val === facetItem.val)) {
+ // console.log(facetValue + " is included")
+ const indexOfFacetValue = this.facets[prop].findIndex((i) => i.val === facetItem.val);
+ // console.log(indexOfFacetValue);
+ rObj = this.facets[prop][indexOfFacetValue];
+ rObj.count = facetItem.count;
+ // rObj = new FacetItem(val, count);
+ } else {
+ rObj = new FacetItem(facetItem.val, facetItem.count);
+ }
+ return rObj;
+ });
+
+ facetValues = facetValues.filter(function (el) {
+ return el != null && el.count > 0;
+ });
+ // this.facets[prop] = facetCategory;
+ this.facets[prop] = facetValues;
}
}
}
- // // Method to handle search response
- // private dataHandler(res: SolrResponse, filterItem?: FacetItem): void {
- // // console.log("dataHandlerSOLR (docs, numFound):");
- // // console.log(res.response.docs);
- // // console.log(res.response.numFound);
-
- // // Update results
- // this.results = res.response.docs;
- // this.numFound = res.response.numFound;
-
- // // Update pagination
- // this.pagination["total"] = res.response.numFound;
- // this.pagination["perPage"] = res.responseHeader.params.rows as number;
- // this.pagination["data"] = res.response.docs;
- // this.pagination.lastPage = Math.ceil(this.pagination.total / this.pagination.perPage);
-
- // const facet_fields: FacetFields = res.facets;
-
- // /* This code declares a variable prop with a type of keys of the facet_fields object. The keyof typeof facet_fields type represents the keys of the facet_fields object.
- // This means that prop can only hold values that are keys of the facet_fields object. */
- // let prop: keyof typeof facet_fields;
-
- // // Iterate through facet fields
- // for (prop in facet_fields) {
- // const facetCategory = facet_fields[prop];
- // if (facetCategory.buckets) {
- // const facetItems: Array = facetCategory.buckets;
-
- // let facetValues = facetItems.map((facetItem) => {
- // let rObj: FacetItem;
- // // Check if current facet item matches filter item
- // if (filterItem?.val == facetItem.val) {
- // rObj = filterItem;
- // } else if (this.facets[prop]?.some((e) => e.val === facetItem.val)) {
- // // console.log(facetValue + " is included")
- // // Update existing facet item with new count
- // const indexOfFacetValue = this.facets[prop].findIndex((i) => i.val === facetItem.val);
- // // console.log(indexOfFacetValue);
- // rObj = this.facets[prop][indexOfFacetValue];
- // rObj.count = facetItem.count;
- // // rObj = new FacetItem(val, count);
- // } else {
- // // Create new facet item
- // rObj = new FacetItem(facetItem.val, facetItem.count);
- // }
- // return rObj;
- // });
-
- // // Filter out null values and values with count <= 0
- // facetValues = facetValues.filter(function (el) {
- // return el != null && el.count > 0;
- // });
- // // this.facets[prop] = facetCategory;
- // // Update facet values
- // this.facets[prop] = facetValues;
- // }
- // }
- // }
-
- // Method to handle search errors
private errorHandler(err: string): void {
this.error = err;
+ // this.loading = false;
}
- // Method to handle pagination
onMenuClick(page: number) {
- console.log("onMenuClick");
-
+ // const test = page;
+ // console.log(test);
this.pagination.currentPage = page;
const start = page * this.pagination.perPage - this.pagination.perPage;
- // // Trigger new search with updated pagination parameters
- // DatasetService.facetedSearch(this.searchTerm, this.activeFilterCategories, this.solr.core, this.solr.host, start.toString()).subscribe(
- // (res: SolrResponse) => this.dataHandler(res),
- // (error: string) => this.errorHandler(error),
- // );
-
- DatasetService.facetedSearchOPEN(this.searchTerm, this.activeFilterCategories, this.open.core, this.open.host, start.toString()).subscribe({
- next: (res: OpenSearchResponse) => this.dataHandlerOPEN(res),
- error: (error: string) => this.errorHandler(error),
- });
+ DatasetService.facetedSearch(this.searchTerm, this.activeFilterCategories, this.solr.core, this.solr.host, start.toString()).subscribe(
+ (res: SolrResponse) => this.dataHandler(res),
+ (error: string) => this.errorHandler(error),
+ );
}
- // Method to handle facet filtering
onFilter(facetItem: FacetItem): void {
- console.log("onFilter");
-
- // Reset current page
this.pagination.currentPage = 1;
// console.log(facetItem.val);
- // console.log(facetItem.category);
-
// if (!this.activeFilterCategories.hasOwnProperty(facetItem.category)) {
-
- // Check if filter item already exists
if (!Object.prototype.hasOwnProperty.call(this.activeFilterCategories, facetItem.category)) {
this.activeFilterCategories[facetItem.category] = new Array();
- // console.log(this.activeFilterCategories);
}
// if (!this.activeFilterCategories[facetItem.category].some((e) => e === facetItem.val)) {
-
- // Check if filter item is not already applied
if (!this.activeFilterCategories[facetItem.category].some((e) => e === facetItem.val)) {
- // Add filter item to active filter categories
this.activeFilterCategories[facetItem.category].push(facetItem.val);
- // Trigger new search with updated filter
- // DatasetService.facetedSearch(this.searchTerm, this.activeFilterCategories, this.solr.core, this.solr.host, undefined).subscribe(
- // (res: SolrResponse) => this.dataHandler(res, facetItem),
- // (error: string) => this.errorHandler(error),
- // );
- // console.log(this.activeFilterCategories);
- DatasetService.facetedSearchOPEN(this.searchTerm, this.activeFilterCategories, this.open.core, this.open.host, undefined).subscribe({
- next: (res: OpenSearchResponse) => this.dataHandlerOPEN(res, facetItem),
- error: (error: string) => this.errorHandler(error),
- });
+
+ DatasetService.facetedSearch(this.searchTerm, this.activeFilterCategories, this.solr.core, this.solr.host, undefined).subscribe(
+ (res: SolrResponse) => this.dataHandler(res, facetItem),
+ (error: string) => this.errorHandler(error),
+ );
+ // alert(this.activeFilterCategories[filter.Category]);
+ // var res = await rdrApi.search(this.searchTerm, this.activeFilterCategories, this.solrCore, this.solrHost);
+ // this.results = res.response.docs;
+ // this.numFound = res.response.numFound;
+
+ // // pagination
+ // this.pagination['total'] = res.response.numFound;
+ // this.pagination['per_page'] = res.responseHeader.params.rows;
+ // this.pagination['current_page'] = 1;
+ // this.pagination['data'] = res.response.docs;
+
+ // var facet_fields = res.facet_counts.facet_fields;
+ // for (var prop in facet_fields) {
+ // var facetValues = facet_fields[prop].map((facetValue, i) => {
+ // if (i % 2 === 0) {
+ // // var rObj = { value: facetValue, count: facet_fields[prop][i + 1] };
+ // var rObj;
+ // if (filter.value == facetValue) {
+ // rObj = filter;
+ // } else if (this.facets[prop].some(e => e.value === facetValue)) {
+ // // console.log(facetValue + " is included")
+ // var indexOfFacetValue = this.facets[prop].findIndex(i => i.value === facetValue);
+ // // console.log(indexOfFacetValue);
+ // rObj = this.facets[prop][indexOfFacetValue];
+ // rObj.count = facet_fields[prop][i + 1];
+ // } else {
+ // rObj = new FilterItem(facetValue, facet_fields[prop][i + 1]);
+ // }
+ // return rObj;
+ // }
+ // }).filter(function (el) {
+ // return el != null && el.count > 0;
+ // });
+ // // this.facets.push({ filterName: prop, values: facetValues });
+ // this.facets[prop] = facetValues;
}
}
- // // // Method to clear facet category filter
- // onClearFacetCategory(categoryName: string): void {
- // console.log("onClearFacetCategory");
-
- // delete this.activeFilterCategories[categoryName];
-
- // // Trigger new search with updated filter
- // DatasetService.facetedSearch(this.searchTerm, this.activeFilterCategories, this.solr.core, this.solr.host, undefined).subscribe({
- // next: (res: SolrResponse) => {
- // this.results = res.response.docs;
- // this.numFound = res.response.numFound;
-
- // // pagination
- // this.pagination["total"] = res.response.numFound;
- // this.pagination["perPage"] = res.responseHeader.params.rows as number;
- // this.pagination["currentPage"] = 1;
- // this.pagination["data"] = res.response.docs;
-
- // const facet_fields: FacetFields = res.facets;
- // let prop: keyof typeof facet_fields;
- // for (prop in facet_fields) {
- // const facetCategory: FacetInstance = facet_fields[prop];
- // if (facetCategory.buckets) {
- // const facetItems: Array = facetCategory.buckets;
-
- // const facetValues = facetItems.map((facetItem) => {
- // let rObj: FacetItem;
- // if (this.facets[prop]?.some((e) => e.val === facetItem.val)) {
- // // console.log(facetValue + " is included")
- // // Update existing facet item with new count
- // const indexOfFacetValue = this.facets[prop].findIndex((i) => i.val === facetItem.val);
- // // console.log(indexOfFacetValue);
- // rObj = this.facets[prop][indexOfFacetValue];
- // rObj.count = facetItem.count;
- // // rObj = new FacetItem(val, count);
- // // if facet ccategory is reactivated category, deactivate all filter items
- // if (prop == categoryName) {
- // rObj.active = false;
- // }
- // } else {
- // // Create new facet item
- // rObj = new FacetItem(facetItem.val, facetItem.count);
- // }
- // return rObj;
- // });
- // this.facets[prop] = facetValues;
- // }
- // }
- // },
- // error: (error: string) => this.errorHandler(error),
- // complete: () => console.log("clear facet category completed"),
- // });
- // }
-
- // Method to clear facet category filter
- onClearFacetCategoryOPEN(categoryName: string): void {
- // console.log("onClearFacetCategory");
+ onClearFacetCategory(categoryName: string): void {
+ // alert(categoryName);
delete this.activeFilterCategories[categoryName];
- // Trigger new search with updated filter
- DatasetService.facetedSearchOPEN(this.searchTerm, this.activeFilterCategories, this.open.core, this.open.host, undefined).subscribe({
- next: (res: OpenSearchResponse) => {
- this.results = res.hits.hits.map(hit => hit._source);
- this.numFound = res.hits.total.value;
-
- // Update pagination
- this.pagination.total = res.hits.total.value;
- this.pagination.perPage = 10;
- this.pagination.currentPage = 1;
- this.pagination.data = this.results;
- this.pagination.lastPage = Math.ceil(this.pagination.total / this.pagination.perPage);
-
- if (res.aggregations) {
- const facet_fields = res.aggregations;
-
- let prop: keyof typeof facet_fields;
-
- for (prop in facet_fields) {
- const facetCategory = facet_fields[prop];
- if (facetCategory.buckets) {
- const facetItems = facetCategory.buckets.map(bucket => new FacetItem(bucket.key, bucket.doc_count));
-
- const facetValues = facetItems.map((facetItem) => {
- let rObj: FacetItem;
- if (this.facets[prop]?.some((e) => e.val === facetItem.val)) {
- // Update existing facet item with new count
- const indexOfFacetValue = this.facets[prop].findIndex((i) => i.val === facetItem.val);
- rObj = this.facets[prop][indexOfFacetValue];
- rObj.count = facetItem.count;
- // if facet category is reactivated category, deactivate all filter items
- if (prop === categoryName) {
- rObj.active = false;
- }
- } else {
- // Create new facet item
- rObj = new FacetItem(facetItem.val, facetItem.count);
+ DatasetService.facetedSearch(this.searchTerm, this.activeFilterCategories, this.solr.core, this.solr.host, undefined).subscribe({
+ next: (res: SolrResponse) => {
+ this.results = res.response.docs;
+ this.numFound = res.response.numFound;
+
+ // pagination
+ this.pagination["total"] = res.response.numFound;
+ this.pagination["perPage"] = res.responseHeader.params.rows as number;
+ this.pagination["currentPage"] = 1;
+ this.pagination["data"] = res.response.docs;
+
+ const facet_fields: FacetFields = res.facets;
+ let prop: keyof typeof facet_fields;
+ for (prop in facet_fields) {
+ const facetCategory: FacetInstance = facet_fields[prop];
+ if (facetCategory.buckets) {
+ const facetItems: Array = facetCategory.buckets;
+
+ const facetValues = facetItems.map((facetItem) => {
+ let rObj: FacetItem;
+ if (this.facets[prop]?.some((e) => e.val === facetItem.val)) {
+ // console.log(facetValue + " is included")
+ const indexOfFacetValue = this.facets[prop].findIndex((i) => i.val === facetItem.val);
+ // console.log(indexOfFacetValue);
+ rObj = this.facets[prop][indexOfFacetValue];
+ rObj.count = facetItem.count;
+ // rObj = new FacetItem(val, count);
+ //if facet ccategory is reactivated category, deactivate all filter items
+ if (prop == categoryName) {
+ rObj.active = false;
}
- return rObj;
- }).filter(el => el.count > 0); // Filter out items with count <= 0
-
- this.facets[prop] = facetValues;
- }
+ } else {
+ rObj = new FacetItem(facetItem.val, facetItem.count);
+ }
+ return rObj;
+ });
+ this.facets[prop] = facetValues;
}
}
},
@@ -452,4 +311,5 @@ export default class SearchViewComponent extends Vue {
});
}
+ // onPaging(page: number): void {}
}
diff --git a/src/views/search-view/search-view-component.vue b/src/views/search-view/search-view-component.vue
index 1e24d44..5afc7d1 100644
--- a/src/views/search-view/search-view-component.vue
+++ b/src/views/search-view/search-view-component.vue
@@ -1,11 +1,31 @@
-
-
+
diff --git a/vue.config.cjs b/vue.config.cjs
index 4fc1199..a15c57a 100644
--- a/vue.config.cjs
+++ b/vue.config.cjs
@@ -89,11 +89,8 @@ module.exports = {
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false",
APP_URL: JSON.stringify(process.env.APP_URL),
VUE_API: JSON.stringify(process.env.VUE_API),
- // SOLR_HOST: JSON.stringify(process.env.SOLR_HOST),
- // SOLR_CORE: JSON.stringify(process.env.SOLR_CORE),
- // OPENSEARCH
- OPEN_HOST: JSON.stringify(process.env.OPEN_HOST),
- OPEN_CORE: JSON.stringify(process.env.OPEN_CORE),
+ SOLR_HOST: JSON.stringify(process.env.SOLR_HOST),
+ SOLR_CORE: JSON.stringify(process.env.SOLR_CORE),
}),
// new NodePolyfillPlugin(),
],