I have some documents in Solr index like this
<doc>
        <arr name="brand">
                <str>toyota</str>
        </arr>
        <arr name="name">
                <str>shock front</str>
        </arr>
</doc>

<doc>
        <arr name="brand">
                <str>toyota</str>
        </arr>
        <arr name="name">
                <str>front shock</str>
        </arr>
</doc>

If I query with 'shock' phrase the result is not sorted and may be
--------------
shock front
front shock
--------------
or
--------------
front shock
shock front
--------------
Can i boost document with name "shock front" by query phrase 'shock'
and boost document  with name "front shock" by query phrase 'front' ?

Reply via email to