string(3583) "
Fatal error: Uncaught Exception: {"error":{"root_cause":[{"type":"script_exception","reason":"runtime error","script_stack":["org.elasticsearch.index.fielddata.ScriptDocValues.throwIfEmpty(ScriptDocValues.java:73)","org.elasticsearch.index.fielddata.ScriptDocValues$Longs.get(ScriptDocValues.java:118)","org.elasticsearch.index.fielddata.ScriptDocValues$Longs.getValue(ScriptDocValues.java:113)","if (doc['ads.instock'].value == 1 && doc['ads.onorder'].value == 0 && doc['ads.sold'].value == 0 ) {"," ^---- HERE"],"script":"int sortOrder = 2; ...","lang":"painless","position":{"offset":46,"start":24,"end":124}}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"ads","node":"JTSB5UHbQIuJFLSqGy5f8Q","reason":{"type":"script_exception","reason":"runtime error","script_stack":["org.elasticsearch.index.fielddata.ScriptDocValues.throwIfEmpty(ScriptDocValues.java:73)","org.elasticsearch.index.fielddata.ScriptDocValues$Longs.get(ScriptDocValues.java:118)","org.elasticsearch.index.fielddata.ScriptDocValues$Longs.getValue(ScriptDocValues.java:113)","if (doc['ads.instock'].value == 1 && doc['ads.onorder'].value == 0 && doc['ads.sold'].value == 0 ) {"," ^---- HERE"],"script":"int sortOrder = 2; ...","lang":"painless","position":{"offset":46,"start":24,"end":124},"caused_by":{"type":"illegal_state_exception","reason":"A document doesn't have a value for a field! Use doc[<field>].size()==0 to check if a document is missing a field!"}}}]},"status":400} |line: 661 |file: /var/www/equipmentsearch.com/devel/application/model/Elastich.php |line: 60 |file: /var/www/equipmentsearch.com/devel/application/model/Api.php in /var/www/equipmentsearch.com/devel/application/model/Api.php:60 Stack trace: #0 /var/www/equipmentsearch.com/devel/application/controllers/ApiController.php(1561): Api->getListing() #1 /var/www/equipmentsearch.com/devel/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php(516): ApiController->jsonAdsListingsAction() #2 /var/www/equipmentsearch.com/devel/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch() #3 /var/www/equipmentsearch.com/devel/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch() #4 /var/www/equipmentsearch.com/devel/vendor/zendframework/zendframework1/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch() #5 /var/www/equipmentsearch.com/devel/vendor/zendframework/zendframework1/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run() #6 /var/www/equipmentsearch.com/devel/public/index.php(43): Zend_Application->run() #7 {main} thrown in /var/www/equipmentsearch.com/devel/application/model/Api.php on line 60
"