Hi

Do you have all fields either "stored" or "docValues"? In that case, /export 
would be the "correct" solution for you.

Have you tried the new export CLI command? 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html#exporting-documents-to-a-file

> bin/solr export --url http://localhost:8983/solr/gettingstarted --limit -1 
> --format json --compress --out myfile

If you get the same exception there, pleas paste the full stack trace along 
with information on what Solr version you are on, so we can see if it is a know 
bug.

Jan

> 17. mars 2025 kl. 08:15 skrev Erik Dybdahl <erik...@gmail.com>:
> 
> Hi,
> I need to do a complete export of a Solr index in a specific order, sorted
> on a specific (non-unique) field. Is this possible?
> 
> I've tried different approaches:
> Using /export request handler, I got " class java.util.LinkedHashMap cannot
> be cast to class org.apache.solr.common.util.NamedList
> (java.util.LinkedHashMap" in BinaryResponseParser. processResponse.
> 
> So, I tried a cursor-based approach, sorting on two fields, the non-unique
> one which I want to have the result sorted on, plus the unique id field.
> However, the sorting is done on the result of each query, not on the
> complete data set.
> 
> My current conclusion is that fetching all the data in a Solr index, in
> sorted order, is not possible.
> Am I right?

Reply via email to