[
https://issues.apache.org/jira/browse/MINDEXER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965364#comment-17965364
]
Olivier Lamy commented on MINDEXER-108:
---------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-indexer#529|https://github.com/apache/maven-indexer/issues/529].
> Lift restriction on leading wildcard queries
> --------------------------------------------
>
> Key: MINDEXER-108
> URL: https://issues.apache.org/jira/browse/MINDEXER-108
> Project: Maven Indexer (Moved to GitHub Issues)
> Issue Type: Improvement
> Affects Versions: 6.0.0
> Reporter: Andreas Sewe
> Assignee: Tamas Cservenak
> Priority: Major
> Fix For: 6.0.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
(v8.20.10#820010)