geonetwork / geonetwork/core-geonetwork

Select Filter Operators for Facets

Open
#8,748 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
521
Forks
514
Avg merge
6d 13h
Merged PRs (30d)
19

Description

We had a request for an improvement to the search facets. The request was to provide an option on the facet filter operator for Keywords so one could choose "AND" instead of "OR". Currently, the only alternative to "OR" is "NOT". Of course, there will be UI considerations to make this intuitive to users. However, as a first step, I would like to be able to set the operator to "AND" when selecting multiple keywords in the facets interface. Other facets should remain "OR". How might I do this?
We are using GN 4.2.5, so Elasticsearch is involved.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the search facets interface and the existing OR/NOT operator handling, then follow how facet selections are sent to Elasticsearch. Done means Keywords facets can use AND for multiple selections while other facets remain OR, with an intuitive UI choice.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java
Domain
frontend, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.