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

Send only 75 "tokens" to Ex Libris' Summon #324

Open
maxkadel opened this issue Nov 12, 2024 · 0 comments
Open

Send only 75 "tokens" to Ex Libris' Summon #324

maxkadel opened this issue Nov 12, 2024 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@maxkadel
Copy link
Collaborator

Expected behavior

When a user puts in a very long query, it is still queried against the Summon article service

Actual behavior

Queries with many "tokens" (words and boolean operators combined) only get an error from Summon and are not searched.

example url with many tokens

produces

{
  "error": {
    "problem":"UPSTREAM_ERROR",
    "message":"Too many tokens in Query. Max tokens: 75 Token Count: 130"
  }
}

Steps to replicate

  • Put a string with over 75 words in an allsearch-api search (start with https://allsearch-api.princeton.edu/search/article?query= then put over 75 words after)

Impact of this bug

Very long queries are not searched against the articles at all

Honeybadger link

https://app.honeybadger.io/projects/114176/faults/109358488/01JCH189R3HH5Z6ZDPZR0EWD4V?page=0

Implementation notes, if any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant