Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Unanswered
Having Issues Running Trains-Server On Win10. Trains-Elastic Exited With Code 137 Trains-Mongo Exited With Code 100 Trains-Apiserver Exited With Code 1 Some Errors=> Requests.Exceptions.Connectionerror: Httpconnectionpool(Host='Elasticsearch', Port=9200


trains-apiserver | [2020-07-10 13:33:29,269] [8] [ERROR] [trains.updates] Failed obtaining updates
trains-apiserver | Traceback (most recent call last):
trains-apiserver | File "/opt/trains/server/updates.py", line 96, in _check_updates
trains-apiserver | response = self._check_new_version_available()
trains-apiserver | File "/opt/trains/server/updates.py", line 48, in _check_new_version_available
trains-apiserver | uid = Settings.get_by_key("server.uuid")
trains-apiserver | File "/opt/trains/server/database/model/settings.py", line 26, in get_by_key
trains-apiserver | res = Settings.objects(key=key).first()
trains-apiserver | File "/usr/local/lib/python3.6/site-packages/mongoengine/queryset/manager.py", line 37, in get
trains-apiserver | queryset = queryset_class(owner, owner._get_collection())
trains-apiserver | File "/usr/local/lib/python3.6/site-packages/mongoengine/document.py", line 219, in _get_collection
trains-apiserver | if cls._meta.get("auto_create_index", True) and db.client.is_primary:
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/mongo_client.py", line 1005, in is_primary
trains-apiserver | return self._server_property('is_writable')
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/mongo_client.py", line 830, in _server_property
trains-apiserver | writable_server_selector)
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/topology.py", line 235, in select_server
trains-apiserver | address))
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/topology.py", line 193, in select_servers
trains-apiserver | selector, server_timeout, address)
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/topology.py", line 209, in _select_servers_loop
trains-apiserver | self._error_message(selector))
trains-apiserver | pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno -2] Name or service not known

  
  
Posted 4 years ago
172 Views
0 Answers
4 years ago
one year ago