我正在使用pyravendb + ravendb来存储网页。这里的主要问题是当网址采用以下形式时:
http://www.somedomain.com/nicepage.html?stuff=param&id=021345
pyravendb似乎丢失并试图找到021345指数(显然不存在)。
以下是一个例子: 网址
http://www.example.com/ebx/LinkResolverServlet?classofcontent=Standard&id=63935
查询 session.query()。where_equals(“url”,url).select(“Id”,“html”,“date”,“metadata”)
给出这个堆栈
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
这是正常的,因为没有索引63935,它似乎误认为查询参数的url参数。
有关如何修复它的任何帮助? 谢谢!
答案 0 :(得分:0)
通过新版本的RavenDB修复!