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

How can i specify the field type when dynamically updating an Elasticsearch index using the PostTransformEvent in Symfony with ElasticaBundle? #1929

Open
cfftony opened this issue Nov 7, 2023 · 0 comments

Comments

@cfftony
Copy link

cfftony commented Nov 7, 2023

How can i specify the field type when dynamically updating an Elasticsearch index using the PostTransformEvent in Symfony with ElasticaBundle?

$document = $event->getDocument();
$object = $event->getObject();
$document->set('images', $value);

The type of 'images' is determined based on the given value by default. For example, if a string is provided, 'images' will be considered as text. However, if I want to use 'keyword,' how should I configure it?

thanks

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