You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Joel Bernstein <jo...@gmail.com> on 2021/08/02 23:49:14 UTC

Re: solr /export broken?

Can you send the Solr log records for the request? That will show us what
parameters were sent to to Solr.


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


On Sat, Jul 31, 2021 at 8:47 AM Dave <ha...@gmail.com> wrote:

> Why does it feel like you have a ) in the wrong spot ?
>
> > On Jul 31, 2021, at 8:17 AM, Kenny Knecht <ke...@ontoforce.com>
> wrote:
> >
> > I probably do something very stupid but I have the following python code
> >
> > data = {
> >    'q':'text:"abc"',
> >    'sort': 'id asc',
> >    'fl': 'id, label'
> > }
> >
> > resp = requests.get(f'http://{server}/solr/{core}/export',
> params=data).json()
> > print(resp)
> > resp = requests.get(f'http://{server}/solr/{core}/select',
> params=data).json()
> > print(resp)
> >
> > The first response does not do what I want: it does not take any of
> > the arguments into account that I have given: it ignores the query and
> > the sort.
> > It always gives me the same result and it also returns only 10 documents.
> >
> > Any idea?
> >
> > The thing is: I see the same behavior in streaming expressions, whihc
> > is quite a nuissance
> > Thanks
> >
> > Kenny
>

Re: solr /export broken?

Posted by Joel Bernstein <jo...@gmail.com>.
Also which version of Solr are you working with?

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


On Mon, Aug 2, 2021 at 7:49 PM Joel Bernstein <jo...@gmail.com> wrote:

> Can you send the Solr log records for the request? That will show us what
> parameters were sent to to Solr.
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Sat, Jul 31, 2021 at 8:47 AM Dave <ha...@gmail.com> wrote:
>
>> Why does it feel like you have a ) in the wrong spot ?
>>
>> > On Jul 31, 2021, at 8:17 AM, Kenny Knecht <ke...@ontoforce.com>
>> wrote:
>> >
>> > I probably do something very stupid but I have the following python
>> code
>> >
>> > data = {
>> >    'q':'text:"abc"',
>> >    'sort': 'id asc',
>> >    'fl': 'id, label'
>> > }
>> >
>> > resp = requests.get(f'http://{server}/solr/{core}/export',
>> params=data).json()
>> > print(resp)
>> > resp = requests.get(f'http://{server}/solr/{core}/select',
>> params=data).json()
>> > print(resp)
>> >
>> > The first response does not do what I want: it does not take any of
>> > the arguments into account that I have given: it ignores the query and
>> > the sort.
>> > It always gives me the same result and it also returns only 10
>> documents.
>> >
>> > Any idea?
>> >
>> > The thing is: I see the same behavior in streaming expressions, whihc
>> > is quite a nuissance
>> > Thanks
>> >
>> > Kenny
>>
>