question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ] Search: Allow participation/override of document serialization

See original GitHub issue

Library name

Azure.Search.Documents

Please describe the feature.

As I don’t have complete control over my POCOs that I need to index, I would like to serialize them myself to eg. skip properties or otherwise customize the serialization of the uploaded documents.

Right now I resort to batch uploading dicitonaries of string,object … it’s fine I guess. But no doubt, I would have been able to skip a lot of the meta programming if we had a bit more ways of plugging into this.

            var batch = IndexDocumentsBatch.Create(documents.Select(d => IndexDocumentsAction.Upload(d.Properties.ToDictionary(p => p.Name, p => p.Value))).ToArray());

            await SearchClient.IndexDocumentsAsync(batch);

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, Sep 3, 2022
1reaction
jsquirecommented, Sep 3, 2022

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Controlling browser features with Permissions Policy
The user has the final decision to allow access to more powerful features, and needs to provide explicit permission via a prompt.
Read more >
Deserialization of untrusted data
Implementation: Use a Java agent to override the internals of ObjectInputStream to prevent exploitation of known dangerous types as seen in rO0 and...
Read more >
Control How to Serialize and Deserialize Apex Types
The new @JsonAccess annotation defined at Apex class level controls whether instances of the class can be serialized or deserialized. If the annotation...
Read more >
DOM Parsing and Serialization
Abstract. This specification defines various APIs for programmatic access to HTML and generic XML parsers by web applications for use in ...
Read more >
Simple 2.7.1
Java Bean serialization​​ In particular annotating Java Bean setter and getter methods will allow for a cleaner means to override the serialization behaviour ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found