-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. #3582
Comments
This issue has been automatically closed because there has been no response to our request for more information in the past 3 days. With only the information that is currently available, we are unable to take further action on this ticket. Please reach out if you have found or find the answers we need so that we can investigate further. When the information is ready, you can re-open this ticket to share it with us. |
Hi @felipeelia, This was after a complete full sync. Is there a way to resend the mapping and check it over or would that just be trying a full sync again? Status report is below and no custom code at the moment. I've removed wp_args and some of the body text from the report errors as it is too much text to paste on Github so sorry if it's a little tricky to read and please let me know if I left out anything important to diagnose further. I think we could actually live without the vast majority of these terms being in the index altogether if that is an option as well? We search more on the short/long desc, some meta data and the pa_brand attribute, most of the others are not really needed.
|
Hi @TorlockC, for some reason ElasticPress is not able to send the mapping for your website. That error To better debug it you'll need WP-CLI, and I recommend you split the full sync into smaller steps:
For step #1, run For step #2, run
If the above looks correct, you can then sync the content with |
This issue has been automatically closed because there has been no response to our request for more information in the past 3 days. With only the information that is currently available, we are unable to take further action on this ticket. Please reach out if you have found or find the answers we need so that we can investigate further. When the information is ready, you can re-open this ticket to share it with us. |
Hi @felipeelia, Thanks for the help. I have run the above in the sequence suggested and got no errors for the mapping. In fact, it appears that the correct 5,000 limit for However, after a few hours of indexing I did attempt to manually update this field directly on my ES server with: This does allow me to continue the reindex but again, once it's 100% complete I get the error(s) from my original comment:
Any idea why it would be reverting on the ES server as when I first downloaded and installed EP it seemed to work fine for months so not sure if I'm missing some vital bit of information here or have misconfigured somehow? |
@TorlockC you can think about index mappings as database table schemas. The The fact that it is changing after a few hours might indicate that you have something going wrong with your infrastructure: likely the index is being deleted for some reason (ElasticPress would not do that without a full sync or a WP-CLI command), and gets recreated in the wrong way (the 1,000 limit indicates an index was recreated "automatically", without the proper mapping being sent.) Unfortunately, as it is something related to your infrastructure, it is beyond our support here. |
Describe your question
Hi there,
I have the following error on all searches at the moment. Not sure if it's related to a recent update or rsync but resyncing doesn't seem to resolve the issue.
We do have a lot of terms so setting
fielddata=true
onterms.pa_10g-support.slug
just returns the same error on another term and assuming that setting it to true on all of these is going to have some major performance impact.Any idea on the best approach to fix this one?
[body] => {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [terms.pa_10g-support.slug] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"transparentukcom-post-1","node":"TO4JT9PYT5qNflqLF4oogA","reason":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [terms.pa_10g-support.slug] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [terms.pa_10g-support.slug] in order to load field data by uninverting the inverted index. Note that this can use significant memory.","caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [terms.pa_10g-support.slug] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}},"status":400}
Code of Conduct
The text was updated successfully, but these errors were encountered: