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
as_pool_build_search_tokens strips off last character #361
Comments
|
FYI @pwithnall - I noticed this in gnome-software and followed it to appstream. |
|
(Note that @robert-ancell might not be available for the next week to follow up on this) |
|
This is likely the result of stemming ( |
|
I agree, and since AppStream caches stemmed tokens, this would be expected
behaviour...
Unless of course stemming is inconsistent, which it shouldn't be.
Philip Withnall ***@***.***> schrieb am Fr., 1. Okt. 2021,
13:06:
… This is likely the result of stemming (as-stemmer.c)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#361 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADF5PAYMCOLGCJ3GJFVL2DUEWI4DANCNFSM5FDZBKJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
|
@robert-ancell did you notice this as the result of a misbehaviour in gnome-software, or just coincidentally? |
|
I noticed this specifically when debugging searches in the snap plugin. When you search for evince only "evinc" is passed to the plugin. I thought this was initially the last keypress not being detected in the search entry, but then found it was this function that was causing the issue. The search tokens are built in |
|
@robert-ancell I think that really depends on the description of GS' plugin API: Are the plugins supposed to get preprocessed (and thereby stemmed) search tokens, or are they supposed to get the raw input submitted by the user? |
The following program:
Prints out
evinc, which seems to indicate the last character is being dropped from search terms.The text was updated successfully, but these errors were encountered: