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

RegexpQueryParser takes a String as value like its Builder #12200

Closed

Conversation

alexksikes
Copy link
Contributor

Relates #11896

@javanna
Copy link
Member

javanna commented Jul 13, 2015

don't we want to change the mappers as well to accept a String instead of an Object?

@alexksikes alexksikes force-pushed the fix/regexp-parser-string-value branch from 9d49b75 to bda8092 Compare July 13, 2015 09:45
@alexksikes
Copy link
Contributor Author

@javanna Thanks for the review. I changed the mapper as well.

@@ -76,7 +76,7 @@ public Query parse(QueryParseContext parseContext) throws IOException, QueryPars
currentFieldName = parser.currentName();
} else {
if ("value".equals(currentFieldName)) {
value = parser.objectBytes();
value = parser.textOrNull();
Copy link
Member

Choose a reason for hiding this comment

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

not sure whether we want to use text() or textOrNull() here

Copy link
Contributor

Choose a reason for hiding this comment

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

Alex's comment on the prefix query that we need to check for null anyway and can have a better error message this way makes sense to me

@javanna
Copy link
Member

javanna commented Jul 13, 2015

looks good, @jpountz can you please have a look too? I had a question above ;)

@javanna javanna added :Query DSL and removed :Core/Infra/Transport API Transport client API labels Jul 13, 2015
@jpountz
Copy link
Contributor

jpountz commented Jul 15, 2015

LGTM

@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Query DSL labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants