ilgrosso opened a new issue #489: Errors with Elasticsearch 5.x
URL: https://github.com/apache/incubator-ponymail/issues/489
 
 
   I initially tried with ES 6.x, but I wasn't able to update index creation 
correctly, so I reverted to ES 5.x, with which everything seems to work except 
for the following.
   
   When running
   
   ```
   python3 edit-list.py --delete --source "idal2.tirasa.net"
   ```
   
   I receive the following error: 
   ```
   Beginning list edit:
     - List ID: <idal2.tirasa.net>
     - Action: Delete emails (sources will be kept!)
   Updating docs...
   Traceback (most recent call last):
     File "edit-list.py", line 180, in <module>
       terms
     File "/var/www/ponymail-src/tools/elastic.py", line 96, in search
       **kwargs
     File 
"/usr/local/lib/python3.6/dist-packages/elasticsearch/client/utils.py", line 
76, in _wrapped
       return func(*args, params=params, **kwargs)
     File 
"/usr/local/lib/python3.6/dist-packages/elasticsearch/client/__init__.py", line 
660, in search
       doc_type, '_search'), params=params, body=body)
     File "/usr/local/lib/python3.6/dist-packages/elasticsearch/transport.py", 
line 318, in perform_request
       status, headers_response, data = connection.perform_request(method, url, 
params, body, headers=headers, ignore=ignore, timeout=timeout)
     File 
"/usr/local/lib/python3.6/dist-packages/elasticsearch/connection/http_urllib3.py",
 line 186, in perform_request
       self._raise_error(response.status, raw_data)
     File 
"/usr/local/lib/python3.6/dist-packages/elasticsearch/connection/base.py", line 
125, in _raise_error
       raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, 
error_message, additional_info)
   elasticsearch.exceptions.RequestError: RequestError(400, 
'illegal_argument_exception', 'No search type for [scan]')
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to