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

Inconsistent search results #674

Open
CodeAndWeb opened this issue Jul 30, 2024 · 1 comment
Open

Inconsistent search results #674

CodeAndWeb opened this issue Jul 30, 2024 · 1 comment

Comments

@CodeAndWeb
Copy link

I am using the API with a simple await window.pagefind.search(query)

Is there a way to disable the dependency from the last input?
Depending on which character I edited last, I get different results - even for the same final input string.

https://vimeo.com/991468900/1d8b35e5dc

Query string: phaser animatio
Result: {results: Array(4), unfilteredResultCount: 4, filters: {…}, totalFilters: {…}, timings: Array(1)}
Query string: phaser animation
Result: {results: Array(0), unfilteredResultCount: 0, filters: {…}, totalFilters: {…}, timings: Array(1)}

Query string: phaser nimation
Result: {results: Array(4), unfilteredResultCount: 4, filters: {…}, totalFilters: {…}, timings: Array(1)}
Query string: phaser animation
Result: {results: Array(1), unfilteredResultCount: 1, filters: {…}, totalFilters: {…}, timings: Array(1)}

Query string: phase animation
Result: {results: Array(4), unfilteredResultCount: 4, filters: {…}, totalFilters: {…}, timings: Array(1)}
Query string: phaser animation
Result: {results: Array(12), unfilteredResultCount: 12, filters: {…}, totalFilters: {…}, timings: Array(1)}

Query string: phaser animatio
Result: {results: Array(4), unfilteredResultCount: 4, filters: {…}, totalFilters: {…}, timings: Array(1)}
Query string: phaser animation
Result: {results: Array(0), unfilteredResultCount: 0, filters: {…}, totalFilters: {…}, timings: Array(1)}

@bglw
Copy link
Contributor

bglw commented Aug 15, 2024

Hi @CodeAndWeb 👋

This looks like a bug, rather than anything intended. Some of it might be caused #478 — but I don't think that accounts for everything you're seeing.

No quick fix sorry, but I'll look into this on my next bug pass.

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

No branches or pull requests

2 participants