这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@return42
Copy link
Member

/// Note: This PR is based on PR #5204 .. please review #5204 first.


This PR adds a new result type: Paper

  • Python class: searx/result_types/paper.py
  • Jinja template: searx/templates/simple/result_templates/paper.html
  • CSS (less) client/simple/src/less/result_types/paper.less

All engines that used the paper.html template so far have been completely revised and tested / a few engines were defective, but most could at least be improved (including the types from #5204).

  • [mod] ADS engine: revision of the engine (Paper result)
  • [mod] Z-Library engine: revision of the engine (Paper result)
  • [mod] Springer Nature engine: revision of the engine (Paper result)
  • [mod] Semantic Scholar engine: revision of the engine (Paper result)
  • [mod] PubMed engine: revision of the engine (Paper result)
  • [mod] Open Library engine: revision of the engine (Paper result)
  • [mod] OpenAlex engine: revision of the engine (Paper result)
  • [mod] Google Scholar engine: revision of the engine (Paper result)
  • [mod] Crossref engine: revision of the engine (Paper result)
  • [mod] CORE engine: revision of the engine (Paper result)
  • [mod] Anna's Archive engine: revision of the engine (Paper result)

For more details go through the commit messages.

@return42 return42 force-pushed the add-paper-result-class branch from 2882637 to d18e631 Compare September 15, 2025 12:40
@return42 return42 requested a review from Copilot September 15, 2025 12:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces typification for paper results in SearXNG by adding a new Paper result type and migrating all paper-based engines from legacy dictionaries to strongly typed result classes.

Key changes:

  • Introduces a new Paper result class with proper field typing and validation
  • Refactors the entire search processor architecture with improved type safety
  • Updates 11 engines (ADS, Springer Nature, Semantic Scholar, PubMed, etc.) to use the new result types

Reviewed Changes

Copilot reviewed 60 out of 62 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
searx/result_types/paper.py New Paper result type class with comprehensive field definitions
searx/search/processors/*.py Complete refactor of processor architecture with improved typing
searx/engines/*.py Migration of 11 engines from dict-based to typed Paper results
searx/templates/simple/result_templates/paper.html Updated template with improved layout and new date formatting
client/simple/src/less/result_types/paper.less New dedicated CSS styling for paper results

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@return42 return42 force-pushed the add-paper-result-class branch from d18e631 to cc9e0b2 Compare September 15, 2025 12:56
@return42 return42 force-pushed the add-paper-result-class branch from cc9e0b2 to be213c7 Compare September 18, 2025 17:55
This patch adds a new result type: Paper

- Python class:   searx/result_types/paper.py
- Jinja template: searx/templates/simple/result_templates/paper.html
- CSS (less)      client/simple/src/less/result_types/paper.less

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the engine / use of the result type Paper as well as other
typifications.

The engine has been placed on inactive because no service is currently
available, or at least not known in the SearXNG community [1]

[1] searxng#3610

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Revision of the Astrophysics Data System (ADS) engine / use of the result type
Paper as well as other typifications.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
@return42 return42 force-pushed the add-paper-result-class branch from be213c7 to db19782 Compare September 20, 2025 08:52
@return42 return42 merged commit d2b4bff into searxng:master Sep 20, 2025
7 checks passed
@return42 return42 deleted the add-paper-result-class branch September 20, 2025 08:56
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.

1 participant