Closed moritzlang closed 2 years ago
Hi @moritzlang
What's the output from wp elasticpress recreate-network-alias
?
Based on what you shared, it seems the global alias was not created. If it says Done.
after the recreate command, can you check all of the indices with get-indexes
and see if you have that index-post-global
index ?
@oscarssanchez
wp elasticpress recreate-network-alias
returns "Success: Done", but when I check with get-indexes
no global index was created.
Environment information
Hi @moritzlang,
get-indexes
won't return aliases, even if they were correctly created. To get a list of aliases you can use wp elasticpress request _cat/aliases
. Also, can you also run wp elasticpress get-indexes
and then wp elasticpress index --setup --yes --network-wide --show-errors
and send us the output? In addition to all that, it would be great if you could install Debug Bar and Debug Bar ElasticPress, run that get_posts() call and send us the query fired and the URL used.
Thanks
This issue has been automatically closed because there has been no response to our request for more information. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. See this blog post on bug reports and the importance of repro steps for more information about the kind of information that may be helpful.
Hi @felipeelia,
first wp elasticpress request _cat/aliases
did not show any output, but after running:
wp elasticpress index --setup --yes --network-wide --show-errors
output:
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Success: Mapping sent
Indexing objects network-wide...
Indexing posts on site 1...
Processed 328/328. Last Object ID: 2
Number of posts indexed on site 1: 328
Indexing posts on site 2...
Processed 350/328. Last Object ID: 3153
Processed 700/1163. Last Object ID: 2385
Processed 1050/1163. Last Object ID: 1125
Processed 1163/1163. Last Object ID: 385
Number of posts indexed on site 2: 1163
Indexing posts on site 5...
Processed 308/328. Last Object ID: 30
Number of posts indexed on site 5: 308
Indexing posts on site 9...
Processed 283/328. Last Object ID: 29
Number of posts indexed on site 9: 283
Indexing posts on site 10...
Processed 200/328. Last Object ID: 29
Number of posts indexed on site 10: 200
Indexing posts on site 11...
Processed 350/328. Last Object ID: 2525
Processed 700/759. Last Object ID: 270
Processed 759/759. Last Object ID: 29
Number of posts indexed on site 11: 759
Indexing posts on site 12...
Processed 66/328. Last Object ID: 30
Number of posts indexed on site 12: 66
Indexing posts on site 15...
Processed 159/328. Last Object ID: 6
Number of posts indexed on site 15: 159
Indexing posts on site 17...
Processed 157/328. Last Object ID: 341
Number of posts indexed on site 17: 157
Indexing posts on site 20...
Processed 127/328. Last Object ID: 2
Number of posts indexed on site 20: 127
Recreating post network alias...
Total time elapsed: 104,792
Success: Done!
Adding post mapping for site 1...
Adding post mapping for site 2...
Adding post mapping for site 5...
Adding post mapping for site 9...
Adding post mapping for site 10...
Adding post mapping for site 11...
Adding post mapping for site 12...
Adding post mapping for site 15...
Adding post mapping for site 17...
Adding post mapping for site 20...
The output showed all global indexes and the query works now as it should
wp elasticpress request _cat/aliases
output:
REDACTED-post-global REDACTED-post-10 - - - -
REDACTED-post-global REDACTED-post-2 - - - -
REDACTED-post-global REDACTED-post-15 - - - -
REDACTED-post-global REDACTED-post-5 - - - -
REDACTED-post-global REDACTED-post-20 - - - -
REDACTED-post-global REDACTED-post-12 - - - -
REDACTED-post-global REDACTED-post-17 - - - -
REDACTED-post-global REDACTED-post-11 - - - -
REDACTED-post-global REDACTED-post-1 - - - -
REDACTED-post-global REDACTED-post-9 - - - -
Any idea why this happened?
Thanks for your help on this!
Good to see things worked @moritzlang! As far as why it happened, probably you had a problem sending the mapping before but I can't be 100% sure on that. If you ever see this problem happening again, let us know. Thanks!
Hi @felipeelia,
I noticed that after clicking the sync button in the Wordpress Admin the aliases are gone again.
When executing wp elasticpress index --setup --yes --network-wide --show-errors
the aliases are there again.
I didn't dig deeper into the issue, just wanted to let you know this.
Is there any issue on the performance/quality of the results when setting the IDs of all indexable sites like this 'sites' => [1, 2, 5, 6, 19, 22]
vs using 'sites' => 'all'
?
Hi,
I am trying to search through all sites of my multisite setup, but as soon as I turn on
"sites" => "all"
no results are returned.The query:
Response from the debug bar:
I already tried to run
wp elasticpress recreate-network-alias
, but this did not help.