我使用 solr 搜索文档,当尝试使用此查询“ id:*
”搜索文档时,我收到此查询解析器异常,告诉它无法使用 * 或?作为第一个字符。
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery
type Status report
message org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery
description The request sent by the client was syntactically incorrect (org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery).
是否有任何补丁可以让它与 * 一起工作?还是做这样的查询成本很高?