Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search only by module name when a term is prefixed with "module:" #1246

Merged
merged 1 commit into from Jul 11, 2014

Conversation

tsibley
Copy link
Contributor

@tsibley tsibley commented Jul 11, 2014

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

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
oalders added a commit that referenced this pull request Jul 11, 2014
Search only by module name when a term is prefixed with "module:"
@oalders oalders merged commit 304bff2 into master Jul 11, 2014
@oalders oalders deleted the tsibley/module-name-search branch July 11, 2014 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants