Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geoportal reading additional item "_search" from index #581

Open
huberg-geodata opened this issue Dec 11, 2024 · 0 comments
Open

Geoportal reading additional item "_search" from index #581

huberg-geodata opened this issue Dec 11, 2024 · 0 comments

Comments

@huberg-geodata
Copy link

huberg-geodata commented Dec 11, 2024

Describe the bug

We have performed an installation of the latest version, 2.7.2.1.

When performing a search operation on or modifying (e.g. via uploading a new .xml metadata file) the index, there is an item with the id "_search" added to the index. If this "_search" item is removed manually, it reappears with the next index-operation. There is only one "_search" item at a time, i.e., if it already exists it is not re-added.

When geoportal prints the total number of items on the Catalog page, the number is one (1) higher than the actual registered geoportal items. This is seemingly because geoportal includes the “_search” item in the count. It should also be noted that "_search" is not displayed as an actual item on the catalog page, it does not appear here.

When a filter (e.g., spatial, temporal, keywords etc.) is employed from the Catalog, the "_search" item is not included in the count, resulting in a correct number being displayed.

The same issue occurs using both Elasticsearch and OpenSearch, regardless of whether they are running on containers locally or through AKS.

To Reproduce

  1. Upload a metadata item, e.g. an xml file, to an otherwise empty index.
  2. Note that the number of "items" is 2 instead of 1.
  3. See that there is an item "_search" in the index.

Expected behavior

We would expect only actual manually registered, items to be included in the total item count print

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant