10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.23k stars 312 forks source link

How to change the index ? #3906

Closed rstrah closed 2 months ago

rstrah commented 2 months ago

Describe your question

At the moment the site dev index is used, how can it be changed ? https://minsknews.by/_search

Code of Conduct

felipeelia commented 2 months ago

I'm not sure I understood your question, @rstrah. What is that address and exactly where it is being used?

rstrah commented 2 months ago

@felipeelia, HI. This is the endpoint of local server Autosuggest. In it I see that the index of my dev site is used and not the main one. Instead of devminsknewsby-post-1 there should be minsknewsby-post-1. How to fix it ?

github-actions[bot] commented 2 months ago

It has been 3 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 3 days, but if you have more information to add then please comment and the issue will stay open.

rstrah commented 2 months ago

i have problem

felipeelia commented 2 months ago

Indices are created by ElasticPress using the current site domain, @rstrah. If you run the sync process from the main site, it will create an index with the correct name. If you want to tweak that logic, you can use the ep_index_name filter.

rstrah commented 2 months ago

The problem is that full indexing has already been launched, but it did not produce anything. https://prnt.sc/4uhQDrYBcLKb