[opencms-dev] Different amount of results shown in debug mode on solr

Maisa Barros maisasb18 at yahoo.com.br
Tue Jul 4 16:03:40 CEST 2017


Hi Daniel,
Thanks for reply.
I understood. So I can not use the solr cursors to perform my search?Because, in that way, using the cursors, it would always be leaving results out of the search. 

Thanks again :) 

    Em Terça-feira, 4 de Julho de 2017 10:47, Daniel Seidel <d.seidel at alkacon.com> escreveu:
 

  Hi Maisa, you can have a look athttps://github.com/alkacon/opencms-core/blob/branch_10_5_x/src/org/opencms/search/solr/CmsSolrIndex.java at the search method starting at line 571, in particular the manipulation at line 622 might be an interesting hint to understand what is happening. At the moment, the search method always requests many more results from solr then you want in the end. The reason is: when resources are filtered by the permission check, you should still get the many results you expected (in most cases). Best, Daniel.
  
 Am 04.07.2017 um 14:38 schrieb Maisa Barros:
  
  Hello everyone, 
  I use opencms 10.5.1 with solr 5.5.3. I have this query: q=incendio&fl=id&sort=id asc&cursorMark=*&debugQuery=true&rows=10 The results displayed are with the amount correct, but in debug explain shows 5 times the number of results: 
 
  And when I use the nextCursorMark, the results for the other page start at 50. At the end, it shows fewer results. When I use basic pagination with "start", it works. What's happening? Thank's.
  
   
  
 _______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev



 
 -- 
Kind Regards,
Daniel.
 
-------------------

Daniel Seidel

Alkacon Software GmbH & Co. KG - The OpenCms Experts                    
http://www.alkacon.com - http://www.opencms.org      _______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev





   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170704/41050110/attachment.htm>


More information about the opencms-dev mailing list