I would consider this a bug. Collapse has never really been tested with
export. But this would certainly speed up the unique Streaming Expression.

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

On Fri, Mar 24, 2017 at 7:46 AM, David Svånå <david.sv...@gmail.com> wrote:

> Hello,
>
> Summary: when using export handler with a collapse query, and only one
> result is returned because of the collapse, a null exception is thrown.
>
> Did I find a bug?
>
> running this query
>
> http://localhost:8983/solr/test7/export?q=*:*&sort=ii%
> 20asc&fl=ii&fq=rid:d575d814-ef42-4b2b-8a58-7e7e6d146896
>
> works fine and returns this
>
> {"responseHeader":{"status":0},"response":{"numFound":1,"
> docs":[{"ii":"00003bab-f165-4ad0-97f0-ca1d5b6361fb"}]}}
>
> Using stream handler with qt=/export also works:
>
> http://localhost:8983/solr/test7/stream?expr=search(
> test7,q=*:*,fl=ii,fq=rid:ff6462fb-f831-4887-b622-
> cdc125ad04f2,sort=ii%20asc,qt=/export)
>
> returns this
>
> {"result-set":{"docs":[{"ii":"cb3b906c-a4a7-4e72-bedb-
> 3db2a26f67af"},{"EOF":true,"RESPONSE_TIME":8}]}}
>
> However, adding a collapse fq on the ii field:
>
> http://localhost:8983/solr/test7/export?q=*:*&sort=ii%
> 20asc&fl=ii&fq={!collapse%20field=ii}&fq=rid:d575d814-
> ef42-4b2b-8a58-7e7e6d146896
> <http://localhost:8983/solr/test7/export?q=*:*&sort=ii%20asc&fl=ii&fq=%7B!collapse%20field=ii%7D&fq=rid:d575d814-ef42-4b2b-8a58-7e7e6d146896>
>
> is causing an invalid response in chrome
>
> "This site can’t be reached
> The webpage at http://localhost:8983/solr/test7/export?q=*:*&sort=ii%
> 20asc&fl=ii,rid&fq={!collapse%20field=ii}&fq=rid:d575d814-
> ef42-4b2b-8a58-7e7e6d146896
> <http://localhost:8983/solr/test7/export?q=*:*&sort=ii%20asc&fl=ii,rid&fq=%7B!collapse%20field=ii%7D&fq=rid:d575d814-ef42-4b2b-8a58-7e7e6d146896>
> might be temporarily down or it may have moved permanently to a new web
> address.
> ERR_INVALID_RESPONSE"
>
> I have attached the actual exception as seen in the log as a txt file.
>
> Using stream handler also has an exception, which is slightly different
> and included in the result set:
>
> http://localhost:8983/solr/test7/stream?expr=search(
> test7,q=*:*,fl=ii,fq={!collapse%20field=ii},fq=rid:
> ff6462fb-f831-4887-b622-cdc125ad04f2,sort=ii%20asc,qt=/export)
> <http://localhost:8983/solr/test7/stream?expr=search(test7,q=*:*,fl=ii,fq=%7B!collapse%20field=ii%7D,fq=rid:ff6462fb-f831-4887-b622-cdc125ad04f2,sort=ii%20asc,qt=/export)>
>
> response:
>
> {"result-set":{"docs":[{"EXCEPTION":"java.util.concurrent.ExecutionException: 
> java.io.IOException: --> http://127.0.1.1:8983/solr/test7_shard1_replica1/: 
> An exception has occurred on the server, refer to server log for 
> details.","EOF":true,"RESPONSE_TIME":12}]}}
>
> I have also attached the exception from log for this (actually in this
> case there is at the same moment a null exception and an ExceptionStream...
> both attached)
>
> I also tested a query that returns multiple identical results, and they
> also fail in the same way when collapsing on that field.
>
> Also the solr schema is attached.
>
>
>

Reply via email to