0
私はpyravendb + ravendbを使ってウェブページを保存しています。PyravenDBの間違ったクエリ構文解析
http://www.somedomain.com/nicepage.html?stuff=param&id=021345
pyravendbが失われたと(明らかにdoesntの存在)021345インデックスを見つけようとしているようだ:ここでの主な問題は、URLがこの形態である場合ということです。
例では、次のようになります。 URL
http://www.example.com/ebx/LinkResolverServlet?classofcontent=Standard&id=63935
クエリ session.query()where_equals( "URL"、URL).select( "ID"、 "HTML"、」。日」、 『メタデータ』)は
何のインデックス63935がないので、それはクエリparameのURLパラメータを間違えているように見える正常です。このスタック
File "/home/myusername/***********/somepythonfile.py", line 60, in getDocumentbyURL
query_result = list(session.query().where_equals("url",url).select("Id","html","date","metadata"))
File "/usr/local/lib/python3.5/dist-packages/pyravendb/store/session_query.py", line 92, in __iter__
return self._execute_query().__iter__()
File "/usr/local/lib/python3.5/dist-packages/pyravendb/store/session_query.py", line 332, 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: Could not find index named: 63935
Could not find index named: 63935
を与えますter。
どのように修正するのに役立ちますか? ありがとうございました!
最新のビルドを使用できますか?おそらく関連するクエリをエスケープする問題がありました。 –
ありがとう! 明日の朝にそれを試してみます。私はそれを更新します。 – Neil
この問題は最終更新で修正されました –