[
https://issues.apache.org/jira/browse/LUCY-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135552#comment-14135552
]
Nick Wellnhofer commented on LUCY-269:
--------------------------------------
Fixed in master and 0.4 branch. I wanted to add a test case to
TestQueryParserSyntax, but couldn't figure out an easy way yet.
> Field names with underscores break query parser
> -----------------------------------------------
>
> Key: LUCY-269
> URL: https://issues.apache.org/jira/browse/LUCY-269
> Project: Lucy
> Issue Type: Bug
> Components: Search
> Affects Versions: 0.4.0
> Reporter: Nick Wellnhofer
> Assignee: Nick Wellnhofer
>
> In 0.4.0, QueryParser doesn't work correctly with field names containing
> underscores. This is likely a bug that I introduced when converting the
> codebase to use string iterators. From a quick glance, it seems that this
> line is wrong:
>
> https://git-wip-us.apache.org/repos/asf?p=lucy.git;a=blob;f=core/Lucy/Search/QueryParser/QueryLexer.c;h=f070fb940bb7ffc698189698df4fdc1f6f7b547c;hb=HEAD#l213
> Should be '==' instead of '!='.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)