Try our conversational search powered by Generative AI!

Why does the type after two dollar signs keep getting added to my indexed item?

Vote:
 

I am indexing a POCO, but what I get is:

"$type": "MisoWeb.Models.Find.MarketReportItem, MISO.MKTPRT.IndexTool","Id$$string": "521","DocumentGuid$$string": "f9551d62-f5a8-4a7f-ae9d-d685061c2165","FileName$$string": "201501_rt_lmp_final_csv.zip","Name$$string": "Archived Real-Time Final Market LMPs (zip)",

what's up with the $$string business?

#200651
Jan 18, 2019 21:08
Vote:
 

I believe it's the type naming convention, if you use Find's api to query the document back Find will seliarize the result document back to your POCO so you don't have to worry about the post fix.

#200671
Jan 21, 2019 10:27
Vote:
 

That's a JSON.NET thing (which Find uses internally), so it index the property type along with property name, so it'll know how to deserialize it back to the object. as Dan said I don't think you have to worry about it.

#200672
Jan 21, 2019 10:42
Vote:
 

Many thanks guys, yeah I am going to give it a shot in my DEV

#201035
Feb 02, 2019 16:59
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.