CPAN-API/metacpan-web — pull request #1246 by tsibley (2014-07-11 17:21:43+00:00)
Title: Search only by module name when a term is prefixed with "module:"

The expanded search (previously only used for searches within specific
distributions) is used so that modules are not collapsed under their
distributions. Someone searching for a list of modules doesn't want
some of the modules elided from the results.

Sorting of results is unchanged, but may want to be reconsidered later
for module: searches after comparing, for example, the vast difference
between module:MooseX::Types and module:MooseX::Type.

While colons are special characters in Lucene's query syntax [1], I
don't think we need to escape them in this case because the query term
contains no spaces. Similarly, we don't seem to need to escape other
special characters like hyphens in distribution names.

[1] http://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Escaping%20Special%20Characters