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

Elasticsearch storage backend #25

Draft
wants to merge 408 commits into
base: main
Choose a base branch
from
Draft

Elasticsearch storage backend #25

wants to merge 408 commits into from

Conversation

janheinrichmerker
Copy link
Contributor

@janheinrichmerker janheinrichmerker commented Nov 2, 2023

Restucture the crawing and parsing to store structured data in Elasticsearch indices instead of in the file system.
Also store WARCs in S3 instead of raw files.
The new storage backends should be flexible enough to allow for re-parsing parts of the dataset without having to delete anything.
The second key requirement is to be able to scale up massively by only interacting with standard ES/S3 APIs instead of having to mount a shared file system on all nodes.

# Conflicts:
#	.github/workflows/ci.yml
#	.idea/inspectionProfiles/Project_Default.xml
#	.idea/misc.xml
#	README.md
#	archive_query_log/legacy/cli/make.py
#	archive_query_log/legacy/results/test/generate_tests.py
#	archive_query_log/legacy/results/test/test_ask_serp_parsing.py
#	archive_query_log/legacy/results/test/test_brave_serp_parsing.py
#	archive_query_log/legacy/results/test/test_chefkoch_serp_parsing.py
#	archive_query_log/legacy/results/test/test_duckduckgo_serp_parsing.py
#	archive_query_log/legacy/results/test/test_ecosia_serp_parsing.py
#	archive_query_log/legacy/results/test/test_qwant_serp_parsing.py
#	data/selected-services.yaml
#	pyproject.toml
#	slurm-cli
#	slurm-setup
@janheinrichmerker janheinrichmerker self-assigned this Nov 2, 2023
@janheinrichmerker janheinrichmerker marked this pull request as draft November 2, 2023 16:31
@janheinrichmerker janheinrichmerker changed the title [WIP] Elasticsearch storage backend Elasticsearch storage backend Nov 2, 2023
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Attention: Patch coverage is 75.00000% with 49 lines in your changes missing coverage. Please review.

Project coverage is 89.68%. Comparing base (3554fc7) to head (225ca1c).
Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
archive_query_log/legacy/queries/parse.py 19.04% 17 Missing ⚠️
archive_query_log/legacy/urls/iterable.py 53.84% 12 Missing ⚠️
archive_query_log/legacy/results/parse.py 56.52% 10 Missing ⚠️
archive_query_log/legacy/model/parse.py 78.57% 3 Missing ⚠️
archive_query_log/legacy/__init__.py 77.77% 2 Missing ⚠️
archive_query_log/legacy/download/iterable.py 90.00% 2 Missing ⚠️
archive_query_log/legacy/model/__init__.py 87.50% 1 Missing ⚠️
archive_query_log/legacy/services/__init__.py 75.00% 1 Missing ⚠️
archive_query_log/legacy/util/text.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #25       +/-   ##
===========================================
+ Coverage   54.00%   89.68%   +35.67%     
===========================================
  Files          92       61       -31     
  Lines        4607     2724     -1883     
===========================================
- Hits         2488     2443       -45     
+ Misses       2119      281     -1838     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

janheinrichmerker and others added 30 commits March 5, 2024 12:37
Signed-off-by: Jan Heinrich Reimer <[email protected]>
Signed-off-by: Jan Heinrich Reimer <[email protected]>
Signed-off-by: Jan Heinrich Reimer <[email protected]>
Signed-off-by: Jan Heinrich Reimer <[email protected]>
Signed-off-by: Jan Heinrich Reimer <[email protected]>
- removed boxes and added url and text in DirectAnswer
- changed xpath str to xpaths List[str]
Signed-off-by: Jan Heinrich Merker <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants