0

我想在标题和描述中列出所有包含“Khaleej”(以/结尾/在中间)的名称。我想提升与标题匹配的所有结果,而否定提升与描述匹配的结果。

 title1_en:Khaleej OR (title2_en:Khaleej OR title2_en:*Khaleej*^8) OR text:*Khaleej* 0.00001

应用了上述查询,但它并没有将我的分数提高到 0 以上。这是我生成的 csv

<? xml version = "1.0" encoding = "UTF-8" ?>

<lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">4</int>
    <lst name="params">
        <str name="fl">score,title2_en,title1_en</str>
        <str name="indent">true</str>
        <str name="q">title1_en:Khaleej OR (title2_en:Khaleej OR title2_en:*Khaleej*^8) OR text:*Khaleej* 0.00001</str>
        <str name="_">1380621443176</str>
        <str name="wt">xml</str>
    </lst>
</lst>
<result name="response" numFound="36" start="0" maxScore="7.090176">
    <doc>
        <str name="title1_en"> Food & Drinks Cakes & Sweets Food & Drinks Dammam Saudi Arabia</str>
        <str name="title2_en">CAKE HOUSE - Khaleej </str>
        <float name="score">7.090176</float></doc>
    <doc>
        <str name="title1_en"> Books Stationery Books Book Stores Books Dammam Saudi Arabia</str>
        <str name="title2_en">Jarir Bookstore - Khaleej   Jarir Bookstore </str>
        <float name="score">5.728604</float></doc>
    <doc>
        <str name="title1_en"> Dammam Saudi Arabia  Books Stationery Books Book Stores Books  Jarir Bookstore  Dammam Saudi Arabia</str>
        <str name="title2_en">Jarir Bookstore Jarir Bookstore - Khaleej </str>
        <float name="score">5.728604</float></doc>
    <doc>
        <str name="title1_en"> Electronics Televisions Electronics Cameras Electronics Computer & Accessories Electronics Mobile Phones Electronics Media Players Electronics Networking Electronics Land Phones Electronics Al-Hasa Saudi Arabia</str>
        <str name="title2_en">Al-Baha Trading Co.- Khaleej Road </str>
        <float name="score">5.728604</float></doc>
    <doc>
        <str name="title1_en"> Dammam Saudi Arabia  Food & Drinks Cakes & Sweets Food & Drinks  Dammam Saudi Arabia Dammam Saudi Arabia Dammam Saudi Arabia</str>
        <str name="title2_en">CAKE HOUSE CAKE HOUSE - 91 CAKE HOUSE - Mazroeyah CAKE HOUSE - Khaleej</str>
        <float name="score">4.3670316</float></doc>
    <doc>
        <str name="title1_en"> Al-Hasa Saudi Arabia  Electronics Televisions Electronics Cameras Electronics Computer & Accessories Electronics Mobile Phones Electronics Media Players Electronics Networking Electronics Land Phones Electronics  Al-Hasa Saudi Arabia Al-Hasa Saudi Arabia Al-Hasa Saudi Arabia</str>
        <str name="title2_en">Al-Baha Trading co. Al-Baha Trading Co.- Ali bin Aby Taleb Street Al-Baha Trading Co.- Dahran Road Al-Baha Trading Co.- Khaleej Road</str>
        <float name="score">3.0054595</float></doc>
    <doc>
        <str name="title1_en"> Education Schools Education Male School Schools Education Dammam Saudi Arabia</str>
        <str name="title2_en">Rowad AlKhaleej International Schools </str>
        <float name="score">0.15684171</float></doc>
    <doc>
        <str name="title1_en"> Dammam Saudi Arabia  Education Schools Education Male School Schools Education </str>
        <str name="title2_en">Rowad AlKhaleej International Schools</str>
        <float name="score">0.15684171</float></doc>
    <doc>
        <str name="title1_en"> Malls Shopping Dammam Saudi Arabia</str>
        <str name="title2_en">Shate'e Mall </str>
        <float name="score">0.01568417</float></doc>
    <doc>
        <str name="title1_en"> Dammam Saudi Arabia  Malls Shopping </str>
        <str name="title2_en">Shate'e Mall</str>
        <float name="score">0.01568417</float></doc>
</result>

4

1 回答 1

1

WildcardQuery 影响评分:与 WildcardQuery 匹配的每个字段对该匹配添加的分数都有相同的提升。因此,您的结果没有像您预期的那样提高似乎很正常。
见:CONSTANT_SCORE_AUTO_REWRITE_DEFAULT

于 2013-10-01T11:25:29.347 回答