Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Fix bing engine results count #1387

Merged
merged 7 commits into from
Aug 5, 2019
Merged

Fix bing engine results count #1387

merged 7 commits into from
Aug 5, 2019

Conversation

bourrel
Copy link
Contributor

@bourrel bourrel commented Aug 29, 2018

This PR fixes the result count from bing which was throwing an (hidden) error and add a validation to avoid reading more results than avalaible.

For example :
If there is 100 results from some search and we try to get results from 120 to 130, Bing will send back the results from 0 to 10 and no error. If we compare results count with the first parameter of the request we can avoid this "invalid" results.

@dalf dalf added this to In progress in Engines via automation Apr 9, 2019
@dalf dalf added the engine label Apr 9, 2019
@dalf dalf added this to In progress in Next via automation Jul 24, 2019
@dalf dalf moved this from In progress to To do in Next Jul 24, 2019
@dalf dalf merged commit 88261e1 into searx:master Aug 5, 2019
Engines automation moved this from In progress to Done Aug 5, 2019
Next automation moved this from To do to Done Aug 5, 2019
dalf added a commit to dalf/searxng that referenced this pull request Aug 27, 2023
Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64
See the u parameter, remove the first two character "a1", and done.

Also add a comment the check of the result_len / pageno
( from searx/searx#1387 )
dalf added a commit to dalf/searxng that referenced this pull request Aug 27, 2023
Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64
See the u parameter, remove the first two character "a1", and done.

Also add a comment the check of the result_len / pageno
( from searx/searx#1387 )
dalf added a commit to dalf/searxng that referenced this pull request Aug 27, 2023
Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64
See the u parameter, remove the first two character "a1", and done.

Also add a comment the check of the result_len / pageno
( from searx/searx#1387 )
dalf added a commit to dalf/searxng that referenced this pull request Aug 28, 2023
Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64
See the u parameter, remove the first two character "a1", and done.

Also add a comment the check of the result_len / pageno
( from searx/searx#1387 )
return42 pushed a commit to searxng/searxng that referenced this pull request Aug 29, 2023
Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64
See the u parameter, remove the first two character "a1", and done.

Also add a comment the check of the result_len / pageno
( from searx/searx#1387 )
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Engines
  
Done
Next
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants