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

Catalog search without support for Xapian boolean operators #1137

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

veloman-yunkan
Copy link
Collaborator

@veloman-yunkan veloman-yunkan commented Sep 25, 2024

Fixes #1104

Now all words in the query (q parameter) of the /catalog/v2/entries API endpoint should act as search terms (i.e. none will be interpreted as a Xapian query operator).

Added to test book descriptions words that serve as keywords
for query syntax with boolean operators (or, and, not, xor, near, adj) enabled.

Note that the change in indexed text has lead to the change in the order
of returned results.
@veloman-yunkan veloman-yunkan force-pushed the catalog_search_without_boolean_operators branch from 756c48c to 01bda6b Compare September 25, 2024 13:43
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.43%. Comparing base (0b14fda) to head (01bda6b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1137   +/-   ##
=======================================
  Coverage   41.43%   41.43%           
=======================================
  Files          59       59           
  Lines        4245     4245           
  Branches     2323     2323           
=======================================
  Hits         1759     1759           
  Misses        990      990           
  Partials     1496     1496           
Flag Coverage Δ
41.43% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelson42 kelson42 merged commit ea31e2f into main Sep 25, 2024
15 checks passed
@kelson42 kelson42 deleted the catalog_search_without_boolean_operators branch September 25, 2024 15:16
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

Successfully merging this pull request may close these issues.

kiwix-serve raises 500 error on Or search term
2 participants