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

Unterstützung der gewichteten Suche für Solr's "minimum match" Parameter #124

Open
extracts opened this issue Dec 6, 2023 · 0 comments

Comments

@extracts
Copy link
Contributor

extracts commented Dec 6, 2023

Mit Solr's DisMax Parameter "minimum match" (siehe auch eDisMax) kann bei der gewichteten Suche angegeben werden, dass bei einer Suche nach mehreren Suchbegriffen eine gewisse Mindestanzahl der Suchbegriffe vorkommen muss.

Für die Unterstützung des "minimum match" Parameters bräuchte es:

  1. in der Konfiguration eine zusätzliche Option
  2. in Opus\Search\Query.php entsprechende Getter & Setter; falls kein Wert explizit gesetzt wurde, würde der Getter den Wert aus der Konfiguration zurückgeben
  3. in Opus\Search\Solr\Solarium\Adapter.php->applyParametersOnQuery() müsste $edismax->setMinimumMatch() gesetzt werden
  4. ein Test in AdapterSearchingTest der zeigt, dass bei einer gewichteten Suche nach mehreren Suchbegriffen mit "minimum match" auch nur Dokumente gefunden werden, die mindestens die angegebene Anzahl von Suchbegriffen enthalten.
@extracts extracts added this to OPUS 4.9 Dec 6, 2023
@j3nsch j3nsch removed this from OPUS 4.9 Jun 5, 2024
@j3nsch j3nsch added this to 4.8.2 Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant