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

Solr Result Json Parser Needed!! #572

Open
udayarccdw opened this issue Sep 28, 2021 · 4 comments
Open

Solr Result Json Parser Needed!! #572

udayarccdw opened this issue Sep 28, 2021 · 4 comments

Comments

@udayarccdw
Copy link

It seems, for now SolrNet supports only the XML Parser and since we can send query as wt=json, we like to have Json Parser on Results. Is there any way we can achieve this ?

@mausch
Copy link
Member

mausch commented Sep 28, 2021

Hi, what exactly do you need from a JSON response that isn't present in XML responses?

@udayarccdw
Copy link
Author

udayarccdw commented Sep 28, 2021

Size of Json Payload would be less than XML Payload . We are retrieving huge number of records. We tested out that Json is faster than XML in that case.

@mausch Is there any way we can make SolrExecutor to have virtual methods, https://github.com/SolrNet/SolrNet/blob/master/SolrNet/Impl/SolrQueryExecuter.cs#L697

So that Consumer of this Lib, will have flexibility to overwrite a method instead of writing the whole component. To accomplish to have Json Parser, I see only the option to rewrite the whole SolrQueryExecuter

Any suggestions here ?

@nbernier
Copy link

nbernier commented Oct 4, 2022

I am facing the same issue and I looked into overriding the QueryExecutor. It would make sense, but I can't generate the QueryResult mainly because the CollationResult has an internal constructor.

@sunilkumarpkd
Copy link

Hi Mausch,
I am facing solr error when trying to run query against solr database.
below is the error.
System.ArgumentException: 'Could not convert value 'System.Collections.ArrayList' to property 'Content' of document type ETP.Library.Solr.SolrObjectHeader'


In the Content we are storing json converted string to solr datadabse.Previously it used to work.No it is stopped dont know what is the reason and how to avoid this error.Please help me

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

4 participants