Leading wildcard character throws error in Lucene.NET

后端 未结 3 734
栀梦
栀梦 2020-12-06 21:11

If the search query contains a leading wildcard character (* or ?), the QueryParser\'s Parse function throws an error.

3条回答
  •  情歌与酒
    2020-12-06 21:50

    Maybe you have to use a WildcardQuery, but

    ...In order to prevent extremely slow WildcardQueries, a Wildcard term should not start with one of the wildcards...

提交回复
热议问题