Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ksenia-c@LAPTOP-5BQNBU76:~/m_code_search$ cs search2 code_index_2 ./codesearch/es/example_request.json
- {'query': {'bool': {'must': {'multi_match': {'query': 'get columns of dataset', 'fields': ['docstring^3', 'identifiers', 'function_name'], 'fuzziness': 'AUTO', 'prefix_length': 2}}, 'filter': {'bool': {'must': [{'terms': {'language': ['Python', 'C++']}}, {'range': {'stargazers_count': {'gte': 100, 'lte': inf}}}]}}}}, 'from': 0, 'size': 8}
- /home/ksenia-c/.local/lib/python3.8/site-packages/elasticsearch/connection/base.py:200: ElasticsearchWarning: Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.15/security-minimal-setup.html to enable security.
- warnings.warn(message, category=ElasticsearchWarning)
- Traceback (most recent call last):
- File "/home/ksenia-c/.local/bin/cs", line 11, in <module>
- load_entry_point('codesearch', 'console_scripts', 'cs')()
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
- return self.main(*args, **kwargs)
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/click/core.py", line 1053, in main
- rv = self.invoke(ctx)
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/click/core.py", line 754, in invoke
- return __callback(*args, **kwargs)
- File "/home/ksenia-c/m_code_search/codesearch/cmd/run.py", line 102, in search2
- pprint(ES.search_doc(index_name, data))
- File "/home/ksenia-c/m_code_search/codesearch/es/client.py", line 61, in search_doc
- res = self.instance.search(index=index_name, body=search_request)
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/elasticsearch/client/utils.py", line 347, in _wrapped
- return func(*args, params=params, headers=headers, **kwargs)
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/elasticsearch/client/__init__.py", line 1830, in search
- return self.transport.perform_request(
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/elasticsearch/transport.py", line 466, in perform_request
- raise e
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/elasticsearch/transport.py", line 427, in perform_request
- status, headers_response, data = connection.perform_request(
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/elasticsearch/connection/http_urllib3.py", line 291, in perform_request
- self._raise_error(response.status, raw_data)
- File "/home/ksenia-c/.local/lib/python3.8/site-packages/elasticsearch/connection/base.py", line 328, in _raise_error
- raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
- elasticsearch.exceptions.RequestError: RequestError(400, 'x_content_parse_exception', '[1:275] [bool] failed to parse field [must]')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement