Last modified: 2013-05-06 08:59:08 UTC
Since the search results give the size and date of latest modification (at the time of the indexing), I suppose the results can be sorted by size and date. So it's a request to add those options for advanced searches, below Search by namespaces: Sort by: relevance (the default) . size . date of latest modification Both would be helpful in particular for certain maintenance tasks, sorting by size for stubs and short pages, and sorting by date of latest modification to detect pages not edited for a long time for example.
Robert, is that feasible for the Lucene index? To do it in the MySQL backend we'd need to add those fields to searchindex (or else build a temporary table w/ results -- anything to avoid joining searchindex and page which is the Performance Kiss Of Death) and I'm still not sure how efficient that would run.
Any update on feasibility of sorting search results?
Can Lucene 3.4.0 (at least) be used with MediaWiki? Are there any problems/limitations? It has support for index-time joins that denormalize relational database tables so that we can simply search over those tables in real time without any joining overhead. Please check the docs for the same for v 3.6.0 here - http://lucene.apache.org/core/3_6_0/api/contrib-join/org/apache/lucene/search/join/package-summary.html What do you think about using it?
(In reply to comment #3) > Can Lucene 3.4.0 (at least) be used with MediaWiki? Are there any > problems/limitations? https://wikitech.wikimedia.org/wiki/Search has info about the search infra and what's used with what. Let's please keep this bug report specific and focused.