Skip to content
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

Invalid property type after an index deletion and recreation #939

Open
pkly opened this issue May 11, 2020 · 0 comments
Open

Invalid property type after an index deletion and recreation #939

pkly opened this issue May 11, 2020 · 0 comments

Comments

@pkly
Copy link
Contributor

pkly commented May 11, 2020

When you change the declared property type in a document class like so

/**
 * @ES\Property(type="text")
 */
private $title;

To

/**
 * @ES\Property(type="keyword")
 */
private $title;

and then re-create the index by dropping it and creating it again, the field will not be updated in ElasticSearch.

It apprears that there's a cache issue, but even after doing the following:

ongr:es:index:create
ongr:es:cache:clear
ongr:es:index:drop --force
ongr:es:index:create

the changes do not persist.

The only way to update the document for ONGR is to add another field to the class.

PHP 7.2
ElasticSearch 7.6.2
Bundle 7.0.2
Symfony 4.4.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant