• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Elasticsearch error: Unknown key for a START_ARRAY in [docvalue_fields].

marioman

Active member
#1
hi,

i installed latest ES5
search index finished without issue but search still not work
i get this error on xenforo Server Error Log

Code:
XenForo_Exception: Elasticsearch error: {"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_ARRAY in [docvalue_fields].","line":1,"col":173}],"type":"parsing_exception","reason":"Unknown key for a START_ARRAY in [docvalue_fields].","line":1,"col":173} -
 
Last edited:

Mike

XenForo developer
Staff member
#2
Can you include the rest of the error backtrace/request state?

Also, do you have any add-ons that add indexable content or add-ons that interact with search?
 

marioman

Active member
#3
Code:
XenForo_Exception: Elasticsearch error: {"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_ARRAY in [docvalue_fields].","line":1,"col":173}],"type":"parsing_exception","reason":"Unknown key for a START_ARRAY in [docvalue_fields].","line":1,"col":173} - library/XenES/Search/SourceHandler/ElasticSearch.php:1006
Generated By: user, 16 minutes ago
Stack Trace

#0 /home/user/public_html/forum/library/XenES/Search/SourceHandler/ElasticSearch.php(361): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), true)
#1 /home/user/public_html/forum/library/XenForo/Search/SourceHandler/Abstract.php(115): XenES_Search_SourceHandler_ElasticSearch->executeSearch('books', false, Array, Array, false, '200')
#2 /home/user/public_html/forum/library/XenForo/Search/Searcher.php(79): XenForo_Search_SourceHandler_Abstract->searchGeneral('books', Array, 'relevance', '200')
#3 /home/user/public_html/forum/library/XenForo/ControllerPublic/Search.php(255): XenForo_Search_Searcher->searchGeneral('books', Array, 'relevance')
#4 /home/user/public_html/forum/library/XenES/Proxy/ControllerSearch.php(34): XenForo_ControllerPublic_Search->actionSearch()
#5 /home/user/public_html/forum/library/XenForo/FrontController.php(351): XenES_Proxy_ControllerSearch->actionSearch()
#6 /home/user/public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#7 /home/user/public_html/forum/index.php(13): XenForo_FrontController->run()
#8 {main}

Request State

array(3) {
  ["url"] => string(37) "http://forum.zyzoom.net/search/search"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(10) {
    ["keywords"] => string(5) "books"
    ["users"] => string(0) ""
    ["date"] => string(0) ""
    ["nodes"] => array(1) {
      [0] => string(0) ""
    }
    ["child_nodes"] => string(1) "1"
    ["order"] => string(9) "relevance"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(8) "/search/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 

marioman

Active member
#7

Attachments

Mike

XenForo developer
Staff member
#8
Running an alpha version of 5.0 is quite likely to be the issue and we don't tend to support alpha/beta versions of underlying software.

Unfortunately, we can't really provide too much support for Elasticsearch itself not starting. You can likely find more details of the cause in the Elasticsearch log files though.
 

Xon

Well-known member
#9
@marioman you are much better off using the official repo and not what is basically an unmaintained 3rd party.

Likely you'll need to rebuild your elasticsearch.yml file, and replace the ES_MAX_HEAP setting with jvm.options

The official releases have actual errors reporting what you need to change, where as the alpha builds give you really garbled error messages.