Comments (1)
Any stop word handling is actually something I removed before release — I can talk through why.
Reason №1 that people implement stop words is to make the index smaller, which isn't too much of a concern for Pagefind due to the chunking strategy. Since chunks are roughly fixed sizes, we can afford to care about stop words.
Reason №2 is to improve search ranking, so that searching for the editor
cares more about editor
than the
. Removing stop words altogether is a heavy handed way of solving this, and the planned implementation of word ranking with BM25 will de-rank the the
automatically without needing to put it on a list, while still keeping it in the index.
The biggest reasons to continue indexing all words is that it improves our exact phrase matching — without stop words searching for "around the world"
might return results with any other word in the middle. Also, it's hard to find stop word lists that are reliably safe to ignore — especially for documentation sites where a lot of common stop words are important to search for. The first list I used had date
as a stop word, for example. Or maybe you want to search MDN for let
.
In any case the word weighting work will provide everything we need around improving the search rankings, without harming search precision 🙂
from pagefind.
Related Issues (20)
- Alpine Image for Pagefind HOT 1
- Configure max build file number HOT 2
- chore: update github action versions to handle node.js 16 deprecations HOT 2
- Use jieba to cut Chinese directly instead charabia HOT 3
- developer experience request: local build system
- Inconsistent search results HOT 1
- Exit code 101 "Permission denied" in CI HOT 2
- Issue with indexing and text that contains underscores HOT 2
- How to organize search into json file with the pagefind.js? HOT 1
- Does not build with rust 1.80.0 HOT 2
- Add in functionality for pages to be filtered only HOT 2
- Excerpts show "__PAGEFIND_ANCHOR__" HOT 4
- How to override URLs? HOT 1
- Security policy HOT 1
- How to use pagefind for a non-static website HOT 1
- exclude-selectors does not work HOT 1
- 'revfd' is declared but its value is never read HOT 1
- 'tds' is declared but its value is never read HOT 1
- incorrect search results for numbers HOT 1
- Node.js Search Example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagefind.