Try to find best possible keyword for Kad searchamule-svn-r10972
commita19567efa969835503823d6f6d193dcc83eb92ef
authorupstream svn <svn@amule.org>
Mon, 21 Nov 2016 10:58:27 +0000 (21 10:58 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Mon, 21 Nov 2016 14:23:29 +0000 (21 14:23 +0000)
tree52bfe820ea14797141b08b19a2a1fd402a699ab5
parentae1eaf1848e0d2f77294db13b64c9f6ba8517b7c
Try to find best possible keyword for Kad search

For example most user will search like this "The oxymoronaccelerator 2", which would ask the node which indexes "the"
This causes higher traffic for such nodes and makes them a viable target to attackers, while the kad result should be
the same or even better if we ask the node which indexes the rare keyword "oxymoronaccelerator", so we try to rearrange
keywords and generally assume that the longer keywords are rarer.
.svn-revision
docs/Changelog
src/SearchList.cpp
src/SearchList.h
src/kademlia/kademlia/SearchManager.cpp