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

Add QueryJsonConverter #16381

Closed
wants to merge 1 commit into from
Closed

Add QueryJsonConverter #16381

wants to merge 1 commit into from

Conversation

MikeAlhayek
Copy link
Member

Fix #16372

@giannik can you text this PR out please? I think the issue is not due to enable/disable the feature. It has to do with deserializing Query from the data in your database. I think this PR will fix the issue but don't have a way to test it.

@giannik
Copy link
Contributor

giannik commented Jun 27, 2024

@MikeAlhayek i tried it out but no effect. I think it has to do with that when you disable eg the lucene feature then these rules are not available :

   // Allows to serialize 'LuceneQuery' from its base type.
            services.AddJsonDerivedTypeInfo<LuceneQuery, Query>();

so it doesnt know how to deserialize.

@giannik
Copy link
Contributor

giannik commented Jun 27, 2024

one sensible thing would be to load and deserialize only the query documents that are enabled . ignoring others

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

Successfully merging this pull request may close these issues.

Error when disabling Lucine or elastic search feature
2 participants