lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Alves (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (LUCENE-1792) new QueryParser fails to set AUTO REWRITE for multi-term queries
Date Sat, 15 Aug 2009 02:42:14 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743528#action_12743528
] 

Luis Alves edited comment on LUCENE-1792 at 8/14/09 7:40 PM:
-------------------------------------------------------------

- add the QueryParserMessages.properties, it was missing from trunk
- change the _TERM_START_CHAR to allow "?" and "*" inside the StandartSyntaxParser.jj
- remove wildcard and prefix detection from the StandartSyntaxParser, this is now done in
a processor for terms and quoted strings.
- PrefixWildcardQueryNode and WildcardQueryNode moved to standard.nodes.* package
- new WildcardQueryNodeProcessor that replaces PrefixWildcardQueryNodeProcessor, to implement
the wildcard logic that was in the .jj file.

One escape testcase is still failing I'll look at that tomorrow.

Mike, if you have time please review it,
this code does not contain your patch,
I did it on the latest trunk


      was (Author: lafa):
    - add the QueryParserMessages.properties, it was missing from trunk
- change the _TERM_START_CHAR to allow "?" and "*" inside the StandartSyntaxParser.jj
- remove wildcard and prefix detection from the StandartSyntaxParser, this is now done in
a processor for terms and quoted strings.
- PrefixWildcardQueryNode and WildcardQueryNode moved to standart.nodes.* package
- new WildcardQueryNodeProcessor that replaces PrefixWildcardQueryNodeProcessor, to implement
the wildcard logic that was in the .jj file.

One escape testcase is still failing I'll look at that tomorrow.

Mike is you have time please review it, this code does not contain your patch,
I did it on the latest trunk

  
> new QueryParser fails to set AUTO REWRITE for multi-term queries
> ----------------------------------------------------------------
>
>                 Key: LUCENE-1792
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1792
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael Busch
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1792.patch, LUCENE-1792.patch, removal_of_wildcard_and_prefix_detection_from_the_syntaxparser.patch
>
>
> The old QueryParser defaults to constant score rewrite for Prefix,Fuzzy,Wildcard,TermRangeQuery,
but the new one seems not to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message