<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<html><head><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-mailStijl17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-mailStijl18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="NL" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1f497d">Hi Erik,</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal">
<span lang="EN-US" style="color:#1f497d">Can you give a sample of how you exactly call cts:search/search:search?</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Kind regards,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Geert </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Van:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:general-bounces@developer.marklogic.com">general-bounces@developer.marklogic.com</a> [mailto:<a href="mailto:general-bounces@developer.marklogic.com">general-bounces@developer.marklogic.com</a>] <b>Namens </b>Erik Zander<br>
<b>Verzonden:</b> vrijdag 3 augustus 2012 10:47<br><b>Aan:</b> <a href="mailto:general@developer.marklogic.com">general@developer.marklogic.com</a><br><b>Onderwerp:</b> [MarkLogic Dev General] search function and results per document trunktation error</span></p>
</div></div><p class="MsoNormal"> </p><p class="MsoNormal"><span lang="SV">Hi All</span></p><p class="MsoNormal"><span lang="SV"> </span></p><p class="MsoNormal"><span lang="EN-US">I have a problem with the search functions both cts:search and search:search. </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">The problem is that when doing a search over a collection documents with many matches are prioritized and first after that the custom weights are added.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">As a result the search have truncated the result even before we are able to impact the score of the matches.</span></p><p class="MsoNormal">
<span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">What we would need would be to have the matches returned independent of in what document the specific element lays. This so that we could prioritize for example all relevant docbook:titles first then go into docbook:blockquotes and lastly single docbook:paras in more than one document whit the docbook structure (see below for super short example) </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;chapter</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> xml:id</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;isbn_9789144019895_ch_2&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> label</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;2&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;title&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">Den kliniska undersökningen</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/title&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;section&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;title&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">Sjukhistorien</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/title&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;para&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">En noggrant förd journal är givetvis av samma vikt vid hjärtsjukdomarna som i alla andra medicinska sammanhang. Vilket eller vilka symtom begränsar prestationsförmågan? De viktigaste och vanligaste symtomen hos hjärtsjuka är </span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;emphasis</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> role</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;italic&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">trötthet</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/emphasis&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">, som uttryck för låg hjärtminutvolym, </span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;emphasis</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> role</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;italic&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">andfåddhet</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/emphasis&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"> framför allt orsakad av lungstas, </span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;emphasis</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> role</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;italic&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">bröstsmärta</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/emphasis&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"> vid kärlkramp, samt </span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;emphasis</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> role</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;italic&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">arytmiupplevelse</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/emphasis&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">. Hjärtpatienter har ofta en anmärkningsvärd förmåga att):</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/para&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;para&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">Indelningen enligt NYHA tillämpas framför allt i samband med hjärtsvikt. Vid ischemisk hjärtsjukdom klassificeras symtomen vanligen enligt Canadian Cardiological Society (CCS), vars indelning i de fyra klasserna i princip inte skiljer sig från den</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;example</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> label</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;Faktaruta 2.1&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> xml:id</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;isbn_9789144019895_infobox_1&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> role</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;box&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;title/&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;blockquote&gt;&lt;itemizedlist</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> mark</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;none&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black"><br>
</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;listitem&gt;&lt;para&gt;&lt;emphasis</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#f5844c"> role</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#ff8040">=</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#993300">&quot;bold&quot;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&gt;</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black">Klass I</span><span lang="SV" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#000096">&lt;/emphasis&gt;</span><span lang="SV"></span></p>
<p class="MsoNormal"><span lang="SV"> </span></p><p class="MsoNormal"><span lang="EN-US">I’m lost to wherein I should be searching for an solution to this problem, how should we do to search in the documents returning results scored independent of which document it is in?</span></p>
<p class="MsoNormal"><span lang="EN-US">Is this a coding or a configuration error or is this the expected and only behavior?</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Regards</span></p>
<p class="MsoNormal"><span lang="EN-US">Erik</span></p></div></div></body></html>