[ 
https://issues.apache.org/jira/browse/SOLR-5120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733606#comment-13733606
 ] 

Łukasz Woźniczka commented on SOLR-5120:
----------------------------------------

Shawn Haisey its my fault sorry. I am setting start parameter = 1 
                
> Solrj Query response error with result number 
> ----------------------------------------------
>
>                 Key: SOLR-5120
>                 URL: https://issues.apache.org/jira/browse/SOLR-5120
>             Project: Solr
>          Issue Type: Bug
>         Environment: linux, lubuntu, java version "1.7.0_13".
>            Reporter: Łukasz Woźniczka
>            Priority: Critical
>
> This is my simple code : 
>  QueryResponse qr;
>         try {
>             qr = fs.execute(solrServer);
>             System.out.println("QUERY RESPONSE : " + qr);
>             for (Entry<String, Object> r : qr.getResponse()) {
>                 System.out.println("RESPONSE: " + r.getKey() + " -> " + 
> r.getValue());
>             }
>             SolrDocumentList dl = qr.getResults();
>             System.out.println("--RESULT SIZE:[ " + dl.size() );
>         } catch (SolrServerException e) {
>             e.printStackTrace();
>         }
> I am using solrj and solr-core version 4.4.0. And there is a bug probably in 
> solrj in query result. I am creating one simple txt doc with content 'anna' 
> and then i am restar solr and try to search this phrase. Nothing is found but 
> this is my query response system out {numFound=1,start=1,docs=[]}.
> So as you can see ther is info that numFound=1 but docs=[] <-- is empty. Next 
> i add another document with only one word 'anna' and then try search that 
> string and this is sysout; 
> {numFound=2,start=1,docs=[SolrDocument{file_id=9882, 
> file_name=luk-search2.txt, file_create_user=-1, file_department=10, 
> file_mime_type=text/plain, file_extension=.txt, file_parents_folder=[5021, 
> 4781, 341, -20, -1], _version_=1442647024934584320}]}
> So as you can see ther is numFound = 2 but only one document is listed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to