Re: Response type of facet.field (classic) results

2023-07-16 Thread Ishan Chattopadhyaya
Ah, thanks! That was not intuitive at all :-) On Sun, 16 Jul 2023 at 14:25, Thomas Corthals wrote: > Hi Ishan, > > If you want a JSON object with key => value pairs instead of a JSON array > with alternating keys and values in the response, you can add &json.nl=map > to your request. > > > https

Re: Response type of facet.field (classic) results

2023-07-16 Thread Thomas Corthals
Hi Ishan, If you want a JSON object with key => value pairs instead of a JSON array with alternating keys and values in the response, you can add &json.nl=map to your request. https://solr.apache.org/guide/solr/latest/query-guide/response-writers.html#json-nl Thomas Op zo 16 jul 2023 om 01:41

Re: Response type of facet.field (classic) results

2023-07-16 Thread Mikhail Khludnev
Hi, Ishan. May https://solr.apache.org/guide/solr/latest/query-guide/response-writers.html#json-nl help here? On Sun, Jul 16, 2023 at 2:44 AM Ishan Chattopadhyaya < ichattopadhy...@gmail.com> wrote: > I used classic facets after a long time, and observed that the facet.field > results in a list o

Response type of facet.field (classic) results

2023-07-15 Thread Ishan Chattopadhyaya
I used classic facets after a long time, and observed that the facet.field results in a list of alternating keys and values: https://gist.github.com/chatman/e475d8fe8e2bf1d7890aa7f75768865e "facet_counts":{ "facet_queries":{}, "facet_fields":{ "unknownField":[ "val",1,