Home » Topics » Technical and configuration issues » Search engines configuration » Elasticsearch » SyntaxError: Unexpected token ‘P’, “Posts excl”… is not valid JSON
Hi
Im getting this error when trying to index products. Out of ideas here what can be wrong… SyntaxError: Unexpected token ‘P’, “Posts excl”… is not valid JSON WP: 6.0.1 Elasticsearch: 7.17.6 WPSolr: 22.3
Debug output https://pastebin.com/raw/ZVsV1Pe2
Looking at the debug log, it seems that the “categories” taxonomy contains objects instead of simple texts.
For instance: { “name”: “pa_type-2”, “value”: “187875”, “position”: “1”, “is_visible”: “1”, “is_variation”: “0”, “is_taxonomy”: “1” }
You must be logged in to reply to this topic.