Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.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
Search 在Cleo中发布的术语与名称略有不同_Search_Cleo - Fatal编程技术网

Search 在Cleo中发布的术语与名称略有不同

Search 在Cleo中发布的术语与名称略有不同,search,cleo,Search,Cleo,我一直在使用来自 并且发现了一个非常恼人的问题。例如,请参见我的dat文件中的此元素(与文件格式相同) 然后我在浏览器中用URL进行查询 cleo primer/rest/elements/search?query=my\u query 当使用“天使投资”、“天使投资”进行查询时,该值为空。但当使用“天使投资”或“天使投资者”进行查询时,给出了元素本身。 在严格的测试中,我发现只有当查询的术语最终只是名称的一个微小变体时,才会显示这种类型的null。请让我知道如何使用cleo primer解

我一直在使用来自

并且发现了一个非常恼人的问题。例如,请参见我的dat文件中的此元素(与文件格式相同)

然后我在浏览器中用URL进行查询

cleo primer/rest/elements/search?query=my\u query


当使用“天使投资”、“天使投资”进行查询时,该值为空。但当使用“天使投资”或“天使投资者”进行查询时,给出了元素本身。
在严格的测试中,我发现只有当查询的术语最终只是名称的一个微小变体时,才会显示这种类型的null。请让我知道如何使用cleo primer解决此问题。

您可以编辑您的Q并发布您尝试的测试和输出吗?谢谢你现在检查一下,我编辑过了。
<?xml version="1.0" encoding="us-ascii"?>
<element-list>
<element>
    <id>12205</id> 
    <score>420.000000</score> 
    <name>angel investor</name> 
    <term>angel investings</term> 
    <term>angel investing</term> 
    <term>angel investments</term> 
    <term>angel investment</term> 
    <term>angel investors</term> 
    <term>angel investor</term> 
    <term>business angel</term> 
    <term>informal investor</term> 
    <term>angel</term> 
    <term>investor</term>
</element>
</element-list>
* STATE: INIT => CONNECT handle 0x60002e190; line 1028 (connection #-5000)
* Hostname was NOT found in DNS cache
*   Trying ::1...
* STATE: CONNECT => WAITCONNECT handle 0x60002e190; line 1076 (connection #0)
* Connected to localhost (::1) port 8080 (#0)
* STATE: WAITCONNECT => DO handle 0x60002e190; line 1195 (connection #0)
> POST /cleo-primer/rest/elements/ HTTP/1.1
> User-Agent: curl/7.37.0
> Host: localhost:8080
> Content-type: application/xml
> Accept: application/xml
> Content-Length: 4428
> Expect: 100-continue
>
* STATE: DO => DO_DONE handle 0x60002e190; line 1281 (connection #0)
* STATE: DO_DONE => WAITPERFORM handle 0x60002e190; line 1407 (connection #0)
* STATE: WAITPERFORM => PERFORM handle 0x60002e190; line 1420 (connection #0)
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 100 Continue
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Content-Length: 0
* Server Jetty(6.1.25) is not blacklisted
< Server: Jetty(6.1.25)
<
* STATE: PERFORM => DONE handle 0x60002e190; line 1590 (connection #0)
* Connection #0 to host localhost left intact
* Expire cleared