Tôi sử dụng solr để tìm kiếm tài liệu và khi tìm kiếm tài liệu bằng truy vấn này "id:*
", tôi nhận được ngoại lệ phân tích cú pháp truy vấn này nói rằng nó không thể phân tích truy vấn bằng * hoặc? là nhân vật đầu tiên.Lỗi WildcardQuery trong Solr
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).
Có bản vá nào để làm việc này chỉ với * không? Hoặc là rất tốn kém để làm một truy vấn như vậy?