[MarkLogic Dev General] search function and results per document trunktation error

Geert Josten geert.josten at dayon.nl
Fri Aug 3 01:54:02 PDT 2012


Hi Erik,



Can you give a sample of how you exactly call cts:search/search:search?



Kind regards,

Geert



*Van:* general-bounces at developer.marklogic.com [mailto:
general-bounces at developer.marklogic.com] *Namens *Erik Zander
*Verzonden:* vrijdag 3 augustus 2012 10:47
*Aan:* general at developer.marklogic.com
*Onderwerp:* [MarkLogic Dev General] search function and results per
document trunktation error



Hi All



I have a problem with the search functions both cts:search and
search:search.



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.



As a result the search have truncated the result even before we are able to
impact the score of the matches.



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)



<chapter xml:id="isbn_9789144019895_ch_2" label="2">
<title>Den kliniska undersökningen</title>
<section>
<title>Sjukhistorien</title>
<para>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 <emphasis role="italic">trötthet</emphasis>, som uttryck
för låg hjärtminutvolym, <emphasis
role="italic">andfåddhet</emphasis>framför allt orsakad av lungstas,
<emphasis role="italic">bröstsmärta</emphasis> vid kärlkramp, samt <emphasisrole
="italic">arytmiupplevelse</emphasis>. Hjärtpatienter har ofta en
anmärkningsvärd förmåga att):</para>
<para>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<example label="Faktaruta
2.1"xml:id
="isbn_9789144019895_infobox_1" role="box">
<title/>
<blockquote><itemizedlist mark="none">
<listitem><para><emphasis role="bold">Klass I</emphasis>



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?

Is this a coding or a configuration error or is this the expected and only
behavior?



Regards

Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120803/8f848a0c/attachment.html 


More information about the General mailing list