|
|
| The stupid question is the question not asked | |
| PerlMonks |
Sorting KinoSearch resultsby moritz (Cardinal) |
| on Jun 19, 2008 at 10:04 UTC ( [id://692880]=perlquestion: print w/replies, xml ) | Need Help?? |
|
moritz has asked for the wisdom of the Perl Monks concerning the following question: I'm about to use the excellent KinoSearch module for a few non-standard tasks, for example for searching in IRC logs and SVN commit messages. Both are "non-standard" in that it doesn't make sense to order the results by match quality, chronologically ordered results are much more useful (at least optionally). Of course I could retrieve the results normally, sort them all, and re-implement the paging of results manually, but that's rather inefficient and clumsy. Can I tell KinoSearch somehow to sort the result set by user-defined criteria? I know these criteria at indexing time (and even index creation time, if that helps). grep'ping for sort seems promising, but so far I couldn't find documentation on how to do it.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||