Search Question
Moderator: Moderators
Search Question
Hi!
Is possible to modify the source code by making DC++ return more than 10 results per user in a search???
ThankYou!
dk
Is possible to modify the source code by making DC++ return more than 10 results per user in a search???
ThankYou!
dk
-
- Posts: 23
- Joined: 2003-02-28 03:47
- Location: germany
- Contact:
*uhm*
it would only change the number fo results YOUR client is sending to OTHERS not the number of results you will get ..
and if you explain why you want to change it might lead to more satisfying answers
it would only change the number fo results YOUR client is sending to OTHERS not the number of results you will get ..
and if you explain why you want to change it might lead to more satisfying answers
learn more about the [A&AM]Hubs: AnimeAndAsianMovies.de.vu
That's what i need to do!
Ok i'll tell you everythink:
We are on a lan and we need to exchange files using dc. that's the easyest thing for our case. we have made a dc hub and now we all need a vesion of dc that allows to show all the results of a search.
I was just asking where i can find in the code the information to change. that's it.
Thankyou for your help!
Ok i'll tell you everythink:
We are on a lan and we need to exchange files using dc. that's the easyest thing for our case. we have made a dc hub and now we all need a vesion of dc that allows to show all the results of a search.
I was just asking where i can find in the code the information to change. that's it.
Thankyou for your help!
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Ok I found where theproblem is:
if(aResults.size() >= maxResults) {
where maxResult is what i was looking for; BUT i still cannot understand where maxResult is inizialized...
I have one more probelm now: it seems like the search is made in a random way...
I have tried to find all the "madonna" music on a computer that shares a lot of mp3 in the same folder (something like 1600+) and the search result is 0. if you search "American pie" the same. But with "madonna - american pie" you get the right song.
I'm asking what kind of search algo does dc++ use?
ThankYou
if(aResults.size() >= maxResults) {
where maxResult is what i was looking for; BUT i still cannot understand where maxResult is inizialized...
I have one more probelm now: it seems like the search is made in a random way...
I have tried to find all the "madonna" music on a computer that shares a lot of mp3 in the same folder (something like 1600+) and the search result is 0. if you search "American pie" the same. But with "madonna - american pie" you get the right song.
I'm asking what kind of search algo does dc++ use?
ThankYou
This is where arnes code gets a wee bit cryptic... you see, maxResults is a parameter to the method in which the code you specified is located. In the calling method, maxResults are set to 5 if either you or the other user is passive and 10 if both he and you are active.d82k wrote:Ok I found where theproblem is:where maxResult is what i was looking for; BUT i still cannot understand where maxResult is inizialized...Code: Select all
if(aResults.size() >= maxResults) {
May be due to the search speedups arne implemented... can't help you here, unfortunately.d82k wrote:I have one more problem now: it seems like the search is made in a random way...[snip]
Sarf
---
Life size models of Cthulhu, on sale now!