我想在标题和说明中列出包含“Khaleej”的所有名称(以/结尾/中间开头)。我希望提升与title匹配的所有结果,并且负面提升与描述匹配的结果。
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>
答案 0 :(得分:1)
WildcardQuery会影响评分:与WildcardQuery匹配的字段每个都会对该匹配所添加的分数产生相同的提升。所以你的结果没有像你期望的那样得到提升似乎是正常的。
请参阅:CONSTANT_SCORE_AUTO_REWRITE_DEFAULT
。