-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lists broken: "contains unrecognized parameter: [ttl]" #197
Comments
+1 for this, also if I use
The list config is reporting Valid, and the correct count for the list. Note that my list consists of FQDNs, which contain dashes and dots, and I'm unsure if these need escaping. I attempted to use a JSON list to see if quoted values made any difference, but as there's no example JSON in the docs I can't get past e.g., 411: 1.5.0 |
I investigated similar problem with JOIN operator for searched. It rises same exception. My journey leads me to the problem that ttl was a possible parameter few years ago when you create documents. Leter it was deprecated and but stil was acceptable by ES. Nowdays ES doesn't accept it and return error. I'm not sure where it parameter uess but started from ull request to official php client here. |
So finally I found solution of my problem. You can find my PR here kiwiz/esquery#2 |
@dsvetlov Good find. How can the container be rebuilt with this ESQuery lib? |
Below you can find my repo with fixed docker and composer files. |
When I try to reference a list in my ES query, I receive the below errors:
[Wed Jan 02 16:17:57.967308 2019] [php7:notice] [pid 7370] [client IPADDRESS:PORT] except [NONE] FOO\SearchException: "{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/lookup_tables/esq_lookup/1546463877_1589251599] contains unrecognized parameter: [ttl]"}],"type":"illegal_argument_exception","reason":"request [/lookup_tables/esq_lookup/1546463877_1589251599] contains unrecognized parameter: [ttl]"},"status":400}" at [/var/www/411/phplib/Search/Elasticsearch.php:311] 0:[FOO\Elasticsearch_Search->search() called at [/var/www/411/phplib/Search/Elasticsearch.php:140]] 1:[FOO\Elasticsearch_Search->_execute() called at [/var/www/411/phplib/Search.php:273]] 2:[FOO\Search->execute() called at [/var/www/411/phplib/Job/Search.php:58]] 3:[FOO\Search_Job->_run() called at [/var/www/411/phplib/REST/Searches.php:212]] 4:[FOO\Searches_REST->test() called at [/var/www/411/phplib/REST/Searches.php:60]] 5:[FOO\Searches_REST->POST() called at [/var/www/411/phplib/REST.php:108]] 6:[FOO\REST->route() called at [/var/www/411/htdocs/api/searches.php:6]], referer: https://fouroneone.mydomain.com/searches/new?type=es
[Wed Jan 02 16:17:57.976394 2019] [php7:notice] [pid 7370] [client IPADDRESS:PORT] err [JOB] Search error id:[] job_id:[] ignorable:[] errors:[0:[SearchException: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/lookup_tables/esq_lookup/1546463877_1589251599] contains unrecognized parameter: [ttl]"}],"type":"illegal_argument_exception","reason":"request [/lookup_tables/esq_lookup/1546463877_1589251599] contains unrecognized parameter: [ttl]"},"status":400}]], referer: https://fouroneone.mydomain.com/searches/new?type=es
The text was updated successfully, but these errors were encountered: