M
M
Magi2020-12-31 09:40:43
elasticsearch
Magi, 2020-12-31 09:40:43

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

1 answer(s)
V
Vitaly Karasik, 2020-12-31
@vitaly_il1

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 question

Ask a Question

731 491 924 answers to any question