You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Robert Petersen <ro...@buy.com> on 2011/10/29 01:09:29 UTC

i don't get why this says non-match

It looks to me like everything matches down the line but top level says
otherQuery is a non-match... I don't get it?
- <response>
- <lst name="responseHeader">
  <int name="status">0</int> 
  <int name="QTime">77</int> 
- <lst name="params">
  <str name="explainOther">SyncMaster</str> 
  <str name="fl">*,score</str> 
  <str name="debugQuery">on</str> 
  <str name="indent">on</str> 
  <str name="start">0</str> 
  <str name="q">+syncmaster -SyncMaster</str> 
  <str name="hl.fl" /> 
  <str name="qt">standard</str> 
  <str name="wt">standard</str> 
  <str name="fq" /> 
  <str name="rows">41</str> 
  <str name="version">2.2</str> 
  </lst>
  </lst>
+ <result name="response" numFound="26" start="0" maxScore="1.6049292">
- <lst name="debug">
  <str name="rawquerystring">+syncmaster -SyncMaster</str> 
  <str name="querystring">+syncmaster -SyncMaster</str> 
  <str name="parsedquery">+moreWords:syncmaster
-MultiPhraseQuery(moreWords:"sync (master syncmaster)")</str> 
  <str name="parsedquery_toString">+moreWords:syncmaster
-moreWords:"sync (master syncmaster)"</str>
<str name="otherQuery">SyncMaster</str> 
- <lst name="explainOther">
<str name="209730998">0.0 = (NON-MATCH) Failure to meet condition(s) of
required/prohibited clause(s) 1.4043131 = (MATCH)
fieldWeight(moreWords:syncmaster in 46710), product of: 1.4142135 =
tf(termFreq(moreWords:syncmaster)=2) 9.078851 = idf(docFreq=41,
maxDocs=135472) 0.109375 = fieldNorm(field=moreWords, doc=46710) 0.0 =
match on prohibited clause (moreWords:"sync (master syncmaster)")
9.393997 = (MATCH) weight(moreWords:"sync (master syncmaster)" in
46710), product of: 2.5863855 = queryWeight(moreWords:"sync (master
syncmaster)"), product of: 23.481407 = idf(moreWords:"sync (master
syncmaster)") 0.1101461 = queryNorm 3.6320949 = (MATCH)
fieldWeight(moreWords:"sync (master syncmaster)" in 46710), product of:
1.4142135 = tf(phraseFreq=2.0) 23.481407 = idf(moreWords:"sync (master
syncmaster)") 0.109375 = fieldNorm(field=moreWords, doc=46710)</str> 


Re: i don't get why this says non-match

Posted by Chris Hostetter <ho...@fucit.org>.
: It looks to me like everything matches down the line but top level says
: otherQuery is a non-match... I don't get it?

Note the parsed query...

:   <str name="parsedquery_toString">+moreWords:syncmaster
: -moreWords:"sync (master syncmaster)"</str>

...and the top level explanation message...

: <str name="209730998">0.0 = (NON-MATCH) Failure to meet condition(s) of
: required/prohibited clause(s) 1.4043131 = (MATCH)

...so either this document *doens't* match the mandatory clause 
"+moreWords:syncmaster" or it *does* match the prohibited clause 
"-moreWords:"sync (master syncmaster)"

Looking at the details...

: match on prohibited clause (moreWords:"sync (master syncmaster)")
: 9.393997 = (MATCH) weight(moreWords:"sync (master syncmaster)" in

...so there's your answer.



-Hoss