Error occurred while indexing non english content like Chines, Arabic etc.
The error is -
[error] Drupal\search_api_solr\SearchApiSolrException while indexing item entity:node/31529:zh-hans: Solr endpoint http://solr:8983/ internal Solr server error (500). {"responseHeader":{"status":500,"QTime":2},"error":{"msg":"[com.ctc.wstx.exc.WstxLazyException] Invalid UTF-8 middle byte 0x26 (at char #3286, byte #127)","trace":"[com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x26 (at char #3286, byte #127)\n\tat com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)\n\tat.
Comments
Comment #2
keshavv commentedComment #3
mkalkbrennerCan you provide a test that triggers that error?
Comment #4
gaurav.kapoor commented@mkalkbrenner This error comes when trying to index non-English content, such as Spanish or Chinese translation of nodes.
Comment #5
mkalkbrennerThere're installations that use Spanish or Chinese. I assume that the issue is in your specific content. I don't think that this is a general issue for Search API or Search API Solr.
But again, if you could isolate the string sequence and provide a test case we can take a closer look.
Comment #6
mkalkbrennerComment #7
sershevchykI saw the same error:
Comment #8
rcodinaI reproduced the same error with Spanish and Catalan content indexing. The problem was in a custom Search API plugin where we used
substrmethod to cut a large text field. After replacingsubstrwithmb_substrthe error disappeared.