Last modified: 2013-05-06 08:59:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23139, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21139 - Option to sort search results by size and date in advanced
Option to sort search results by size and date in advanced
Status: NEW
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-14 17:28 UTC by Cenarium
Modified: 2013-05-06 08:59 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Cenarium 2009-10-14 17:28:57 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.
Comment 1 Brion Vibber 2009-10-14 17:36:03 UTC
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.
Comment 2 Rd232 2012-02-28 23:07:11 UTC
Any update on feasibility of sorting search results?
Comment 3 Nilesh Chakraborty 2013-05-03 19:42:03 UTC
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?
Comment 4 Andre Klapper 2013-05-06 08:59:08 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links