PtokaX > Support

Search results order


We have NAS with PtokaX hub, DC client on it and hundreds of other clients in passive mode in our network. Disks are too slow to serve all clients so we made a cache with SSD to keep popular files on it. All works fine when cashe's nick is the first in search results. It seems that the first connected client is the first in results. So we reconnect NAS every time when cache is reconnected to hub.

How can we make nick of cache to be the first in results independently of connecting order?
Maybe it can be made with script or we can edit some source code to "hardcode" search results order?
I tried but didnt find where search results in source code could be corrected.

Late reply but: it cannot be done in Lua as you cannot influence the order clients send their results back to the hub after receiving a search string. So if a search is done every user sends back the results to the hub (in passive mode) separately. Lua interface can only do anything after the search response reached the hub.The only option could be "holding back" every search result except for those coming from a particular nick for a few seconds.  So if a search is performed the results from the nick are not held back, making them appear first on the list.If you still need this I can do this delay but it's just an idea and not sure if it will work, but easy to code nonetheless.


[0] Message Index

Go to full version