maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cservenak, Tamas (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MINDEXER-108) Lift restriction on leading wildcard queries
Date Thu, 23 Nov 2017 21:47:00 GMT

    [ https://issues.apache.org/jira/browse/MINDEXER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264805#comment-16264805
] 

Cservenak, Tamas commented on MINDEXER-108:
-------------------------------------------

What versions of lucene accepts {{*}} as prefix? Current master uses Lucene 5.x and it does
not accept it...

> Lift restriction on leading wildcard queries
> --------------------------------------------
>
>                 Key: MINDEXER-108
>                 URL: https://issues.apache.org/jira/browse/MINDEXER-108
>             Project: Maven Indexer
>          Issue Type: Improvement
>    Affects Versions: 6.0
>            Reporter: Andreas Sewe
>             Fix For: 6.0
>
>
> The {{DefaultQueryCreator}} prevents queries with leading wildcard:
> {noformat}
> if ( query.startsWith( "*" ) || query.startsWith( "?" ) )
> {
>     throw new ParseException( "Query cannot start with '*' or '?'!" );
> }
> {noformat}
> While this was necessary in older versions of Lucene, the version used now happily executes
such queries. The restriction can thus be lifted.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message