Solr を検索ソリューションとして評価しようとしており、スコアの取得で問題に直面しています。クロールしてインデックスを作成しましたが、私たちの知る限り、スコアリングに関する構成を変更していないにもかかわらず、すべてのスコアが 0.0 になっています。
誰かが複製して、ここで原因をお知らせいただければ幸いです。大きな助けになるでしょう。
Solr のバージョンは 4.2 です
Query : select?q=Menu&wt=xml&indent=true&debug=true&fl=*,score
This XML file does not appear to have any style information associated with it. The document tree is shown below.
−
<response>
−
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">3</int>
−
<lst name="params">
<str name="fl">id,title,score</str>
<str name="indent">true</str>
<str name="q">Menu</str>
<str name="debug">true</str>
<str name="wt">xml</str>
</lst>
</lst>
−
<result name="response" numFound="6" start="0" maxScore="0.0">
−
<doc>
<str name="title">English :: McDonalds.ca</str>
<str name="id">http://www.mcdonalds.ca/</str>
<float name="score">0.0</float>
</doc>
−
<doc>
<str name="title">Corporate Opportunities :: McDonalds.ca</str>
−
<str name="id">
http://www.mcdonalds.ca/ca/en/careers/corp_opp/corporate_opportunities.html
</str>
<float name="score">0.0</float>
</doc>
−
<doc>
<str name="title">People :: McDonalds.ca</str>
−
<str name="id">
http://www.mcdonalds.ca/ca/en/careers/rest_opp/people.html
</str>
<float name="score">0.0</float>
</doc>
−
<doc>
<str name="title">Training, Education and Benefits :: McDonalds.ca</str>
−
<str name="id">
http://www.mcdonalds.ca/ca/en/careers/rest_opp/training_education_and_benefits.html
</str>
<float name="score">0.0</float>
</doc>
−
<doc>
<str name="title">Working Here :: McDonalds.ca</str>
−
<str name="id">
http://www.mcdonalds.ca/ca/en/careers/rest_opp/working_here.html
</str>
<float name="score">0.0</float>
</doc>
−
<doc>
<str name="title">Environment :: McDonalds.ca</str>
−
<str name="id">
http://www.mcdonalds.ca/ca/en/communities/environment.html
</str>
<float name="score">0.0</float>
</doc>
</result>
−
<lst name="spellcheck">
<lst name="suggestions"/>
</lst>
−
<lst name="debug">
−
<lst name="queryBoosting">
<str name="q">menu</str>
<null name="match"/>
</lst>
<str name="rawquerystring">Menu</str>
<str name="querystring">Menu</str>
<str name="parsedquery">text:menu</str>
<str name="parsedquery_toString">text:menu</str>
−
<lst name="explain">
−
<str name="http://www.mcdonalds.ca/">
0.0 = (MATCH) weight(text:menu in 0) [DefaultSimilarity], result of:
0.0 = fieldWeight in 0, product of:
1.4142135 = tf(freq=2.0), with freq of:
2.0 = termFreq=2.0
0.84584934 = idf(docFreq=6, maxDocs=6)
0.0 = fieldNorm(doc=0)
</str>
−
<str name="http://www.mcdonalds.ca/ca/en/careers/corp_opp/corporate_opportunities.html">
0.0 = (MATCH) weight(text:menu in 1) [DefaultSimilarity], result of:
0.0 = fieldWeight in 1, product of:
1.0 = tf(freq=1.0), with freq of:
1.0 = termFreq=1.0
0.84584934 = idf(docFreq=6, maxDocs=6)
0.0 = fieldNorm(doc=1)
</str>
−
<str name="http://www.mcdonalds.ca/ca/en/careers/rest_opp/people.html">
0.0 = (MATCH) weight(text:menu in 2) [DefaultSimilarity], result of:
0.0 = fieldWeight in 2, product of:
1.0 = tf(freq=1.0), with freq of:
1.0 = termFreq=1.0
0.84584934 = idf(docFreq=6, maxDocs=6)
0.0 = fieldNorm(doc=2)
</str>
−
<str name="http://www.mcdonalds.ca/ca/en/careers/rest_opp/training_education_and_benefits.html">
0.0 = (MATCH) weight(text:menu in 3) [DefaultSimilarity], result of:
0.0 = fieldWeight in 3, product of:
1.0 = tf(freq=1.0), with freq of:
1.0 = termFreq=1.0
0.84584934 = idf(docFreq=6, maxDocs=6)
0.0 = fieldNorm(doc=3)
</str>
−
<str name="http://www.mcdonalds.ca/ca/en/careers/rest_opp/working_here.html">
0.0 = (MATCH) weight(text:menu in 4) [DefaultSimilarity], result of:
0.0 = fieldWeight in 4, product of:
1.0 = tf(freq=1.0), with freq of:
1.0 = termFreq=1.0
0.84584934 = idf(docFreq=6, maxDocs=6)
0.0 = fieldNorm(doc=4)
</str>
−
<str name="http://www.mcdonalds.ca/ca/en/communities/environment.html">
0.0 = (MATCH) weight(text:menu in 5) [DefaultSimilarity], result of:
0.0 = fieldWeight in 5, product of:
1.0 = tf(freq=1.0), with freq of:
1.0 = termFreq=1.0
0.84584934 = idf(docFreq=6, maxDocs=6)
0.0 = fieldNorm(doc=5)
</str>
</lst>
<str name="QParser">LuceneQParser</str>
−
<lst name="timing">
<double name="time">3.0</double>
−
<lst name="prepare">
<double name="time">1.0</double>
−
<lst name="query">
<double name="time">0.0</double>
</lst>
−
<lst name="facet">
<double name="time">0.0</double>
</lst>
−
<lst name="mlt">
<double name="time">0.0</double>
</lst>
−
<lst name="highlight">
<double name="time">0.0</double>
</lst>
−
<lst name="stats">
<double name="time">0.0</double>
</lst>
−
<lst name="spellcheck">
<double name="time">0.0</double>
</lst>
−
<lst name="elevator">
<double name="time">1.0</double>
</lst>
−
<lst name="debug">
<double name="time">0.0</double>
</lst>
</lst>
−
<lst name="process">
<double name="time">2.0</double>
−
<lst name="query">
<double name="time">0.0</double>
</lst>
−
<lst name="facet">
<double name="time">0.0</double>
</lst>
−
<lst name="mlt">
<double name="time">0.0</double>
</lst>
−
<lst name="highlight">
<double name="time">0.0</double>
</lst>
−
<lst name="stats">
<double name="time">0.0</double>
</lst>
−
<lst name="spellcheck">
<double name="time">0.0</double>
</lst>
−
<lst name="elevator">
<double name="time">0.0</double>
</lst>
−
<lst name="debug">
<double name="time">2.0</double>
</lst>
</lst>
</lst>
</lst>
</response>
フィルターに www.mcdonalds.ca ドメインが構成されていました。これは www.mcdonalds.ca.ca/en.html にリダイレクトされていたため、どの URL についてもスコアが表示されませんでした。
トップ URL を変更し、www.mcdonalds.ca の代わりに www.mcdonalds.ca/ca/en.html に言及したところ、機能しました。
詳細については、次の URL を参照してください。