I think the best approach is to use the /export handler. The wt=xsort I
believe has been removed from the system. The configuration for the /export
handler uses wt=json now.

The configurations in the implicitPlugins.js look like this:

"/export": {
  "class": "solr.ExportHandler",
  "useParams":"_EXPORT",
  "components": [
    "query"
  ],
  "defaults": {
    "wt": "json"
  },
  "invariants": {
    "rq": "{!xport}",
    "distrib": false
  }







Joel Bernstein
http://joelsolr.blogspot.com/

On Tue, Jan 30, 2018 at 8:23 AM, Antelmo Aguilar <aagui...@nd.edu> wrote:

> Hi Joel,
>
> I apologize, I should have been more specific.  We do not use the export
> handler that is defined by Solr.  We use a couple export handlers that we
> defined using the convention explained in the ticket that implemented the
> feature.
>
> We did this because we have "categories" of things we export so there are
> additional invariants for each category so we do not have to worry about
> them when constructing the query.
>
> It seems that with version 6.6, these custom export handlers do not work
> anymore.
>
> Best,
> Antelmo
>
>
> On Jan 29, 2018 7:37 PM, "Joel Bernstein" <joels...@gmail.com> wrote:
>
> There was a change in the configs between 6.1 and 6.6. If you upgraded you
> system and kept the old configs then the /export handler won't work
> properly. Check solrconfig.xml and remove any reference to the /export
> handler. You also don't need to specify the rq or wt when you access the
> /export handler anymore. This should work fine:
>
> http://host:port/solr/collection/export?q=*:*&fl=
> exp_id_s&sort=exp_id_s+asc
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
> On Mon, Jan 29, 2018 at 4:59 PM, Antelmo Aguilar <aagui...@nd.edu> wrote:
>
> > Hi All,
> >
> > I was using this feature in Solr 6.1:
> > https://issues.apache.org/jira/browse/SOLR-5244
> >
> > It seems that this feature is broken in Solr 6.6.  If I do this query in
> > Solr 6.1, it works as expected.
> >
> > q=*:*&fl=exp_id_s&rq={!xport}&wt=xsort&sort=exp_id_s+asc
> >
> > However, doing the same query in Solr 6.6 does not return all the
> results.
> > It just returns 10 results.
> >
> > Also, it seems that the wt=xsort parameter does not do anything since it
> > returns the results in xml format.  In 6.1 it returned the results in
> > JSON.  I asked same question in the IRC channel and they told me that it
> is
> > supposed to still work the same way.  Had to leave so hopefully someone
> can
> > help me out through e-mail.  I would really appreciate it.
> >
> > Thank you,
> > Antelmo
> >
>

Reply via email to