Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

remove contendom depending override of search result items per page initially introduced https://github.com/yacy/yacy_search_server/commit/e4570bffaf6e8c7c71d8945dbed746a91015819d#diff-ae6c130fc11088c830b00ed9256ab56b (as one part of unexpected difference in actual vs requested results, partial bugfix for http://mantis.tokeek.de/view.php?id=627 )

regerabd8ecb5033a
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java
index 855b9ffbd..8e29fc3e3 100644
--- a/htroot/yacysearch.java
+++ b/htroot/yacysearch.java
@@ -267,13 +267,6 @@ public class yacysearch {
// find search domain
final Classification.ContentDomain contentdom = post == null || !post.containsKey("contentdom") ? ContentDomain.ALL : ContentDomain.contentdomParser(post.get("contentdom", "all"));
- // patch until better search profiles are available
- if (contentdom == ContentDomain.IMAGE && (itemsPerPage == 10 || itemsPerPage == 100)) {
- itemsPerPage = 64;
- } else if ( contentdom != ContentDomain.IMAGE && itemsPerPage > 50 && itemsPerPage < 100 ) {
- itemsPerPage = 10;
- }
-
// check the search tracker
TreeSet<Long> trackerHandles = sb.localSearchTracker.get(client);
if ( trackerHandles == null ) {