<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Maisa,</p>
<p>you can have a look at
<a class="moz-txt-link-freetext" href="https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src/org/opencms/search/solr/CmsSolrIndex.java">https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src/org/opencms/search/solr/CmsSolrIndex.java</a>
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.</p>
<p>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).</p>
<p>Best, Daniel.<br>
</p>
<br>
<div class="moz-cite-prefix">Am 04.07.2017 um 14:38 schrieb Maisa
Barros:<br>
</div>
<blockquote type="cite"
cite="mid:6757766.4135834.1499171920888@mail.yahoo.com">
<div style="color:#000; background-color:#fff;
font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:10px">
<div id="yui_3_16_0_ym19_1_1499171199610_14192"><font
id="yui_3_16_0_ym19_1_1499171199610_14193" size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif">Hello everyone,</font></div>
<div id="yui_3_16_0_ym19_1_1499171199610_14194"><font size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif"><br
id="yui_3_16_0_ym19_1_1499171199610_14195">
</font></div>
<div style="margin-top: 0px; margin-bottom: 1em; border: 0px;
font-variant-numeric: inherit; font-stretch: inherit;
line-height: inherit; vertical-align: baseline; clear: both;
color: rgb(36, 39, 41);"
id="yui_3_16_0_ym19_1_1499171199610_14196"><font
id="yui_3_16_0_ym19_1_1499171199610_14419" size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif">I use opencms 10.5.1 with solr
5.5.3.</font></div>
<div style="margin-top: 0px; margin-bottom: 1em; border: 0px;
font-variant-numeric: inherit; font-stretch: inherit;
line-height: inherit; vertical-align: baseline; clear: both;
color: rgb(36, 39, 41);"
id="yui_3_16_0_ym19_1_1499171199610_14197"><font
id="yui_3_16_0_ym19_1_1499171199610_14418" size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif">I have this query:
q=incendio&fl=id&sort=id
asc&cursorMark=*&debugQuery=true&rows=10</font></div>
<div dir="ltr" style="margin-top: 0px; margin-bottom: 1em;
border: 0px; font-variant-numeric: inherit; font-stretch:
inherit; line-height: inherit; vertical-align: baseline;
clear: both; color: rgb(36, 39, 41);"
id="yui_3_16_0_ym19_1_1499171199610_14198"><font
id="yui_3_16_0_ym19_1_1499171199610_14316" size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif">The results displayed are with
the amount correct, but in debug explain shows 5 times the
number of results:</font></div>
<div id="yui_3_16_0_ym19_1_1499171199610_10519"><font
id="yui_3_16_0_ym19_1_1499171199610_13977" size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif"><img class="ymail-preserve-class
inline-image-guid-c43b90f4-edbf-2cc7-6ab8-b8170f3658bf
rte-inline-saved-image"
src="cid:14a49715-4410-f01a-9ddf-b1a12ac1489e@yahoo.com"
data-id="inline-image-guid-c43b90f4-edbf-2cc7-6ab8-b8170f3658bf"
alt="Alinhar imagem"
style="width:100%;max-width:603px;max-height:451px;"
id="yui_3_16_0_ym19_1_1499171199610_14103"
moz-do-not-send="true"><br
id="yui_3_16_0_ym19_1_1499171199610_14106">
<br>
</font></div>
<div style="margin-top: 0px; margin-bottom: 1em; border: 0px;
font-variant-numeric: inherit; font-stretch: inherit;
line-height: inherit; vertical-align: baseline; clear: both;
color: rgb(36, 39, 41);"
id="yui_3_16_0_ym19_1_1499171199610_14264"><font
id="yui_3_16_0_ym19_1_1499171199610_14320" size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif">And when I use the
nextCursorMark, the results for the other page start at 50.
At the end, it shows fewer results.</font></div>
<div style="margin-top: 0px; margin-bottom: 1em; border: 0px;
font-variant-numeric: inherit; font-stretch: inherit;
line-height: inherit; vertical-align: baseline; clear: both;
color: rgb(36, 39, 41);"
id="yui_3_16_0_ym19_1_1499171199610_14265"><font
id="yui_3_16_0_ym19_1_1499171199610_14411" size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif">When I use basic pagination with
"start", it works.</font></div>
<div style="margin-top: 0px; margin-bottom: 1em; border: 0px;
font-variant-numeric: inherit; font-stretch: inherit;
line-height: inherit; vertical-align: baseline; clear: both;
color: rgb(36, 39, 41);" dir="ltr"
id="yui_3_16_0_ym19_1_1499171199610_14266"><font size="2"
face="HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif">What's happening?</font></div>
<div style="margin-top: 0px; margin-bottom: 1em; border: 0px;
font-variant-numeric: inherit; font-stretch: inherit;
line-height: inherit; vertical-align: baseline; clear: both;
color: rgb(36, 39, 41);" dir="ltr"
id="yui_3_16_0_ym19_1_1499171199610_14266"><span
style="font-family: HelveticaNeue, "Helvetica
Neue", Helvetica, Arial, "Lucida Grande",
sans-serif; font-size: small;">Thank's.</span><br>
</div>
<div style="margin-top: 0px; margin-bottom: 1em; border: 0px;
font-variant-numeric: inherit; font-stretch: inherit;
font-size: 15px; line-height: inherit; font-family: Arial,
"Helvetica Neue", Helvetica, sans-serif;
vertical-align: baseline; clear: both; color: rgb(36, 39,
41);" dir="ltr" id="yui_3_16_0_ym19_1_1499171199610_13969"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Kind Regards,
Daniel.
-------------------
Daniel Seidel
Alkacon Software GmbH & Co. KG - The OpenCms Experts
<a class="moz-txt-link-freetext" href="http://www.alkacon.com">http://www.alkacon.com</a> - <a class="moz-txt-link-freetext" href="http://www.opencms.org">http://www.opencms.org</a> </pre>
</body>
</html>