Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带双引号的实体查询中的Solr错误_Solr_Double Quotes - Fatal编程技术网

带双引号的实体查询中的Solr错误

带双引号的实体查询中的Solr错误,solr,double-quotes,Solr,Double Quotes,我已将oracle模式连接到solr。我的oracle架构中的表和列是用双引号(“)创建的,在dataconfig.xml的实体查询部分中使用它们时,我遇到了错误: <entity name="itemsum" query="select * from Bug b where b."item" = 8 " > 我知道这是因为双引号,但我无法重新创建我的表和列。如果有任何想法,我将不胜感激。是否尝试用“\”转义引号?您可以使用单引号在XML中包围属性值: <entity na

我已将oracle模式连接到solr。我的oracle架构中的表和列是用双引号(“)创建的,在dataconfig.xml的实体查询部分中使用它们时,我遇到了错误:

<entity name="itemsum" query="select * from Bug b where b."item" = 8 " > 

我知道这是因为双引号,但我无法重新创建我的表和列。如果有任何想法,我将不胜感激。

是否尝试用“\”转义引号?

您可以使用单引号在XML中包围属性值:

<entity name="itemsum" query='select * from Bug b where b."item" = 8 ' > 


或者,您可以将引号字符转义为“

尝试转义这些字符。。。您可以使用查看如何在xml中转义字符。。由于xml问题,这将有助于使用
”而不是“”
<entity name="itemsum" query='select * from Bug b where b."item" = 8 ' >