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

Convert TermQuery to PrefixQuery if PHRASE_PREFIX is set #5553

Merged
merged 1 commit into from Mar 26, 2014

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Mar 26, 2014

We miss to add a single term to a prefix query if the query in only a
single term.

Closes #5551

return prefixQuery;
} if (query instanceof TermQuery) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should either be an else if or the if should be on the next line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure thing!

@jpountz
Copy link
Contributor

jpountz commented Mar 26, 2014

Apart from a minor indentation issue, the fix looks good to me.

+1 to merge it!

@s1monw
Copy link
Contributor Author

s1monw commented Mar 26, 2014

pushed an update

We miss to add a single term to a prefix query if the query in only a
single term.

Closes elastic#5551
@jpountz
Copy link
Contributor

jpountz commented Mar 26, 2014

LGTM

@s1monw s1monw merged commit a12a36e into elastic:master Mar 26, 2014
@clintongormley clintongormley added >bug v2.0.0-beta1 v1.2.0 v1.1.1 :Search/Search Search-related issues that do not fall into other categories labels Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories v1.1.1 v1.2.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

match_phrase_prefix broken
3 participants