Skip to content

QueryParser parsing a phrase with a wildcard #14440

Open
@viliam-durina

Description

@viliam-durina

Description

Hi all,

I have tried to parse this query using the classic QueryParser:

String sQuery = ""foo bar*"";

The query was parsed into a PhraseQuery with two terms: "foo" and "bar". That is the wildcard was lost and the query doesn't handle the "bar" term as a prefix.

I think this is an issue: Lucene should either produce an error, if wildcard search isn't supported within phrases, or it should produce a correct query.

Version and environment details

10.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions