如何在Solr FL查询中转义特殊字符

时间:2020-05-20 09:33:59

标签: solr

我在Solr中提取了一个文档,该文档的字段为 Can Ship Int'l 我想过滤Solr查询响应并提取 Can Ship Int'l 字段。 当我通过fl = custom_string_Can Ship Int'l作为查询参数时,我得到

{   "requestId": null,   "service": "prod-search-service",   "errors":
> [
>     {
>       "message": "The query contains an undefined field.",
>       "code": 1026,
>       "description": "The search service could not process the query, because it contains a field name that is not defined for the search
> collection. To solve the issue, make sure the query contains only
> names of fields that are defined in the search collection schema.
> Refer to the service API specification for information on available
> fields.",
>       "level": "ERROR",
>       "locale": ""
>     }   ] }

我应该如何查询获得所需输出的查询?

0 个答案:

没有答案