Answer the question
In order to leave comments, you need to log in
How to make elasticpress index all wordpress posts?
Hello!
There is a site on wordpress with a DB ~ 170000 documents. Installed Elasticsearch 7.5.1 and plugin for wordpress ElasticPress.
By default index.mapping.total_fields.limit": 5000 I
start indexing, it reaches about 94000 documents and is interrupted.
I increased this parameter to different values, up to 200000 indexing still does not reach the end.
curl -X PUT "localhost:9200/index -post-1/_settings" -H 'Content-Type: application/json' -d'
{
"index.mapping.total_fields.limit": 200000
}
'
In the log (with value 9000)
][DEBUG][oeabTransportShardBulkAction] [server] [index-post-1][3] failed to execute bulk item (index) index {[index-post-1][_doc][242005], source[n/a, actual length: [9.5kb], max length: 2kb]}
java.lang.IllegalArgumentException: Limit of total fields [9000] in index [index-post-1] has been exceeded
Answer the question
In order to leave comments, you need to log in
You have some problem with mapping. It makes no sense to increase total_fields.limit, you need to read the documentation, look at your database and configure elasticpress correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question