Thanks for your reply, Jack.

The export result sets are incorrect in the sense that results totally
don't match the query.
For example, when I query age=20(age is int type), the results contains
age=14, 22...
  curl "http://localhost:8983/solr/pa_info/export?q=age:20&fl=id,age"; will
get the following result:
    <response>
    <lst name="responseHeader"><int name="status">0</int><int
name="QTime">5</int></lst><result name="response" numFound="132309"
start="0"><doc><str name="id">26650337</str><int
name="age">50</int></doc><doc><str name="id">26650348</str><int
name="age">14</int></doc><doc><str name="id">26650351</str><int
name="age">43</int></doc><doc><str name="id">26650353</str><int
name="age">59</int></doc><doc><str name="id">26650355</str><int
name="age">52</int></doc><doc><str name="id">26650357</str><int
name="age">47</int></doc><doc><str name="id">26650361</str><int
name="age">6</int></doc><doc><str name="id">26650367</str><int
name="age">7</int></doc><doc><str name="id">26650372</str><int
name="age">35</int></doc><doc><str name="id">26650374</str><int
name="age">22</int></doc></result>
    </response>

I 've read the cwiki document, but I'm still not sure that export will
return partial results since the doc says:"It's possible to export fully
sorted result sets using a special rank query parser
<https://cwiki.apache.org/confluence/display/solr/Query+Re-Ranking>
and response
writer <https://cwiki.apache.org/confluence/display/solr/Response+Writers>".
But as you can see from the above example, the results are not just
partial, they are simply wrong,,,

2014-12-26 20:18 GMT+08:00 Jack Krupansky <jack.krupan...@gmail.com>:

> You neglected to tell us specifically in what way the export result is
> incorrect. Is some of the data missing, duplicated, garbled, or... what?
> Provide an example and be specific about what you think is "wrong" in the
> results.
>
> Have you modified the default solrconfig file?
>
> I notice that you don't have distrib=false on your select, which would make
> your select be from all nodes, while export would only be docs from the
> specific node you sent the request to.
>
> Please confirm whether you have read the doc for the Solr export feature:
> https://cwiki.apache.org/confluence/display/solr/Exporting+Result+Sets
>
>
> -- Jack Krupansky
>
> On Fri, Dec 26, 2014 at 3:58 AM, Sandy Ding <sandy.ding...@gmail.com>
> wrote:
>
> > Hi, all
> >
> > I've recently set up a solr cluster and found that "export" returns
> > different results from "select".
> > And I confirmed that the "export" results are wrong by manually query the
> > results.
> > Even simple queries as follows will get different results:
> >
> > curl "http://localhost:8983/solr/pa_info/select?q=*:*&fl=id&sort=id+desc
> ":
> >
> >     <response><lst name="responseHeader"><int name="status">0</int><int
> > name="QTime">11</int><lst name="params"><str name="sort">id
> desc</str><str
> > name="fl">id</str><str name="q">*:*</str></lst></lst><result
> > name="response" *numFound="1197"* start="0"><doc>...</doc></result>
> >
> > curl "http://localhost:8983/solr/pa_info/export?q=*:*&fl=id&sort=id+desc
> "
> > :
> >     {*"numFound":172*, "docs":[..]
> >
> > Don't have a clue why this happen! Anyone help?
> >
> > Best,
> > Sandy
> >
>

Reply via email to