Hi All,

We have a requirement where we need to rank the search results based on a
certain hierarchy, best explained by an example:

*Object 1: *
<object>
    <item>
        <component>
            <text>a</text>
            <component>
                <text>b c</text>
            </component>
        </component>
    </item>
</object>

*Object 2:*

<object>
    <item>
        <component>
            <text>a b c</text>
            <component>
                <text>d e f</text>
            </component>
        </component>
    </item>
</object>

*Object 3:*

<object>
    <item>
        <component>
            <text>a</text>
        </component>
        <component>
            <text>b c</text>
        </component>
    </item>
</object>

If the user search for "a b c" the order of the documents should be Object
2, Object 1 and Object 3. The logic behind this is that closer these words
are meaning closer in the parent <component> tag they should rank up
higher. I have no clue on how to do any hierarchical queries/weighting
logic.

We are open to remodeling the data to cater to all of this, but dont think
any ideas on this could work in any search engine for that matter?

Thanks,
Basu
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to