tpayet / github-issues-scraper Goto Github PK
View Code? Open in Web Editor NEWGet issues and pull requests from GitHub repository to MeiliSearch
License: MIT License
Get issues and pull requests from GitHub repository to MeiliSearch
License: MIT License
Let's be allies and make this change that means a lot.
Here is a blog post that explain a little more why it's important, and how to easily do it. It will be a bit more complicated with automation, but we still should do it!
I'll create a GitHub action for next years.
The way of scraping issues and PRs determines the quality of the search. Here are the points I noticed for improvements:
Using url
and anchor
instead of just url
field so that the same issue/PR is not repeated in the search bar results. I asked this change in the main PR because it's essential to fix that before any integration from my POV.
hierarchy_radio_lvlX
is never set. I pointed out a link in the documentation main issue to explain in details how to imitate docs-scraper, and there is an explanation about hierarchy_radio_lvlX
. This field is also important for the search. It should be fixed ASAP 🙂
If I'm not wrong, every single document has a content
field filled (never set to null
). It's not a big deal but we don't want the content to be displayed every time. It depends on the search.
In the current main docs, if I type "add documents" the search bar returns only a title because a title exists according to the search:
Be sure the Add Documents
page contains add documents
in its content (not only in the titles), but the search bar does not need to display it.
Again with the current main documentation, if I type "our solution", there is no title or subtitle matching, so the search bar returns the content
:
But, with the current search bar for the GitHub issue, we always return content
: it's not necessary and "spoils" the results:
Here, if I type "new token" I want the search bar to return only the issue "Tracking issue: New tokenizer" without any content.
If I type "i agree", there is no title matching, so I do want this result:
How to fix that? When scraping a new issue, another document should be added with the same information but:
content
set to null
anchor
set to null
according to the first point)hierarchy_radio_lvlX
according to the 2nd point)Nothing has to be removed. Only one additional document is required.
""
(not null
). Maybe there are others.{
"objectID": 822216370506972087,
"hierarchy_radio_lvl0": null,
"hierarchy_radio_lvl1": null,
"hierarchy_radio_lvl2": null,
"hierarchy_radio_lvl3": null,
"hierarchy_radio_lvl4": null,
"hierarchy_radio_lvl5": null,
"hierarchy_lvl0": "🌍 GitHub",
"hierarchy_lvl1": "Issue",
"hierarchy_lvl2": "High-availability with a distributed consensus algorithm",
"content": "",
"anchor": null,
"url": "https://github.com/meilisearch/MeiliSearch/issues/528"
}
We should investigate on that to set to I noticed the issue does not have any description. In this case, only a document with a content set to null
or to fill it with the right content.null
should be added (linked with the 3rd point).
The 2nd and 3rd points are linked to improve the user experience and should be done in the same PR.
For test purpose, I would like to have the possibility to specify the index UID as an environment variable 🙂
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.