This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
Proposal to remove minimum length of content for xpath engine #2933
0xhtml
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The xpath.py engine requires a minimum length of 1 for the content of the results.
searx/searx/engines/xpath.py
Line 51 in 10c9c16
It may make sense to remove that requirement in order to allow the implementation of search engines that do not always have a description. In fact some search engines that in 99% of the case have a description like Brave Search (#2857) or Mojeek crash completely if they for some reason included a result with no description.
Instead of getting rid of the length requirement it may also be an option to simply skip the result containing no description instead of raising an exception and therefore hiding all results of the engine.
Or is there a specific reason to require the content? Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions