Hello,
Is there any implicit/explicit ranking mechanism for the results obtained using API for full text search?
example:
http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=...
If possible, can some one throw some light on the ranking?
Thanks,
Best Regards
Prateek
Prateek wrote:
Hello,
Is there any implicit/explicit ranking mechanism for the results obtained using API for full text search?
example:
http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=... http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Institution&format=xml
If possible, can some one throw some light on the ranking?
Thanks,
Best Regards
Prateek
-- Prateek Jain Research Assistant, Kno.e.sis Center Wright State University Fairborn,Ohio 45435 http://knoesis.wright.edu/students/prateek/
The earlier it appears, the more relevant it is expected to be, although the way relevance is determined is something internal by the search backend being used.
Platonides <platonides <at> gmail.com> writes:
Prateek wrote:
Hello,
Is there any implicit/explicit ranking mechanism for the results obtained using API for full text search?
.....
If possible, can some one throw some light on the ranking?
Thanks, Best Regards Prateek --
The earlier it appears, the more relevant it is expected to be, although the way relevance is determined is something internal by the search backend being used.
When more than one results are returned they are ordered by title, therefore the backend ranking is corrupted. Is there anyway around this, besides asking for an output size of 1 and making repeated queries with successive offsets?
Regards, Anthony
On Mon, Nov 01, 2010 at 02:33:13PM +0000, Anthony Patrinos wrote:
When more than one results are returned they are ordered by title, therefore the backend ranking is corrupted. Is there anyway around this, besides asking for an output size of 1 and making repeated queries with successive offsets?
It looks to me like the API returns them ordered by ranking, compare [1] and [2]. It may be that whatever you use to parse the API return is reordering them.
[1] http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=... [2] http://en.wikipedia.org/w/index.php?title=Special:Search&search=foo&...
mediawiki-api@lists.wikimedia.org