我注意到了ravendb
的python客戶端的一個奇怪的解析問題。 當我使用這個查詢pyravendb查詢參數解析錯誤
query_result = list(session.query().where_equals("url",url).select("Id","htmlCode","url"))
知道url = "http://www.mywebsite.net/"
錯誤堆棧的培訓相關部分如下:
File "/usr/local/lib/python3.5/dist-packages/pyravendb/store/session_query.py", line 71, in __iter__
return self._execute_query().__iter__()
File "/usr/local/lib/python3.5/dist-packages/pyravendb/store/session_query.py", line 307, in _execute_query
includes=self.includes)
File "/usr/local/lib/python3.5/dist-packages/pyravendb/d_commands/database_commands.py", line 286, in query
raise exceptions.ErrorResponseException(response["Error"][:100])
pyravendb.custom_exceptions.exceptions.ErrorResponseException: Lucene.Net.QueryParsers.ParseException: Could not parse: 'url:http://www.mywebsite.net/' --->
,但如果我只需要添加一個簡單' '
到URL參數在查詢中,它的工作原理沒有任何解析錯誤(但由於語法不一樣,dosent會返回結果)。
我想爲github上的pyravendb
做出貢獻,但我不確定它在解析參數的位置,因此可能會調用lucene
。
任何想法爲什麼簡單的空間可以防止正確的解析?
這就是我所做的。我將用它作爲一個臨時的解決辦法,直到下一個pyravendb推到點子:)快樂(種)有助於在烏鴉固定「錯誤」!謝謝 ! – Neil
我修復了它,你可以更新你的pyravendb。 只是不要忘記刪除逃逸 –