[jira] [Commented] (SOLR-5120) Solrj Query response error with result number

2013-08-08 Thread Shawn Heisey (JIRA)

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

Shawn Heisey commented on SOLR-5120:


[~lukasw44] I have a question to ask you:

What resources did you look at in order to decide that you should file a bug to 
get an answer to your question?  The reason that I ask is because we have been 
seeing an increase recently in the number of people who file a bug for support 
issues instead of asking for help via our discussion resources like the mailing 
list.  This suggests that there might be some incorrect support information out 
there that needs correction.

Related to your issue: If setting the start parameter to 0 or omitting the 
parameter didn't fix your issue, then this issue can be reopened, but I'm 
confident that this is the problem.


 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 (EntryString, 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



[jira] [Commented] (SOLR-5120) Solrj Query response error with result number

2013-08-08 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SOLR-5120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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 (EntryString, 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