我正在使用pyravendb+ravendb来存储网页。这里的主要问题是,当url采用这种形式时:
http://www.somedomain.com/nicepage.html?stuff=param&id=021345
pyravendb似乎丢失了,并试图找到021345索引(显然不存在)。你知道吗
例如: url
http://www.example.com/ebx/LinkResolverServlet?classofcontent=Standard&id=63935
查询 会话.查询()。其中_等于(“url”,url)。选择(“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参数误认为是查询参数。你知道吗
有人帮我修吗? 谢谢您!你知道吗
通过新版本的RavenDB修复!你知道吗
相关问题 更多 >
编程相关推荐