In MarkLogic, I can boost relevance score for certain documents.
For example if I have a document stored in content
collection such as the below:
<Content xmlns="http://test.ww/common/content/v1.0">
<DisplayName>Testing DisplayName</DisplayName>
</Content>
And I also have another document stored in techno
collection such as the below
<Techno xmlns="http://test.ww/common/content/v1.0">
<DisplayName>Testing DisplayName</DisplayName>
</Techno>
And I have another document in the fun
collection with XML as below
<Fun xmlns="http://test.ww/common/content/v1.0">
<DisplayName>Testing DisplayName</DisplayName>
</Fun>
If I do a search for the term testing displayname
, I expect that documents in the content collection should have a higher relevance than documents in the techno
collection. Ranking should be from Content->Techno->Fun. Basically if it is an exact match on the displayname I want MarkLogic to rank relevance with the content
collection having the top relevance.
How can I do this? I am using the search library.