I am working on upgrading Solr from 1.4 to 3.5, and I have hit a problem.   I 
have a test checking for a search result in Solr, and the test passes in Solr 
1.4, but fails in Solr 3.5.   Dismax is the desired QueryParser -- I just 
included output from lucene QueryParser to prove the document exists and is 
found 

I am completely stumped.


Here are the debugQuery details:

***Solr 3.5***

lucene QueryParser:     

URL:   q=all_search:"The Beatles as musicians : Revolver through the Anthology"
final query:  all_search:"the beatl as musician revolv through the antholog"

6.0562754 = (MATCH) weight(all_search:"the beatl as musician revolv through the 
antholog" in 1064395), product of:
  1.0 = queryWeight(all_search:"the beatl as musician revolv through the 
antholog"), product of:
    48.450203 = idf(all_search: the=3531140 beatl=398 as=645923 musician=11805 
revolv=872 through=81366 the=3531140 antholog=11611)
    0.02063975 = queryNorm
  6.0562754 = fieldWeight(all_search:"the beatl as musician revolv through the 
antholog" in 1064395), product of:
    1.0 = tf(phraseFreq=1.0)
    48.450203 = idf(all_search: the=3531140 beatl=398 as=645923 musician=11805 
revolv=872 through=81366 the=3531140 antholog=11611)
    0.125 = fieldNorm(field=all_search, doc=1064395)

dismax QueryParser:   
URL:  qf=all_search&pf=all_search&q="The Beatles as musicians : Revolver 
through the Anthology"
final query:   +(all_search:"the beatl as musician revolv through the 
antholog"~1)~0.01 (all_search:"the beatl as musician revolv through the 
antholog"~3)~0.01

(no matches)


***Solr 1.4***

lucene QueryParser:   

URL:  q=all_search:"The Beatles as musicians : Revolver through the Anthology"
final query:  all_search:"the beatl as musician revolv through the antholog"

5.2676983 = fieldWeight(all_search:"the beatl as musician revolv through the 
antholog" in 3469163), product of:
  1.0 = tf(phraseFreq=1.0)
  48.16181 = idf(all_search: the=3542123 beatl=391 as=749890 musician=11955 
revolv=820 through=88238 the=3542123 antholog=11205)
  0.109375 = fieldNorm(field=all_search, doc=3469163)

dismax QueryParser:   
URL:  qf=all_search&pf=all_search&q="The Beatles as musicians : Revolver 
through the Anthology"
final query:  +(all_search:"the beatl as musician revolv through the 
antholog"~1)~0.01 (all_search:"the beatl as musician revolv through the 
antholog"~3)~0.01

score:

7.449651 = (MATCH) sum of:
  3.7248254 = weight(all_search:"the beatl as musician revolv through the 
antholog"~1 in 3469163), product of:
    0.7071068 = queryWeight(all_search:"the beatl as musician revolv through 
the antholog"~1), product of:
      48.16181 = idf(all_search: the=3542123 beatl=391 as=749890 musician=11955 
revolv=820 through=88238 the=3542123 antholog=11205)
      0.014681898 = queryNorm
    5.2676983 = fieldWeight(all_search:"the beatl as musician revolv through 
the antholog" in 3469163), product of:
      1.0 = tf(phraseFreq=1.0)
      48.16181 = idf(all_search: the=3542123 beatl=391 as=749890 musician=11955 
revolv=820 through=88238 the=3542123 antholog=11205)
      0.109375 = fieldNorm(field=all_search, doc=3469163)
  3.7248254 = weight(all_search:"the beatl as musician revolv through the 
antholog"~3 in 3469163), product of:
    0.7071068 = queryWeight(all_search:"the beatl as musician revolv through 
the antholog"~3), product of:
      48.16181 = idf(all_search: the=3542123 beatl=391 as=749890 musician=11955 
revolv=820 through=88238 the=3542123 antholog=11205)
      0.014681898 = queryNorm
    5.2676983 = fieldWeight(all_search:"the beatl as musician revolv through 
the antholog" in 3469163), product of:
      1.0 = tf(phraseFreq=1.0)
      48.16181 = idf(all_search: the=3542123 beatl=391 as=749890 musician=11955 
revolv=820 through=88238 the=3542123 antholog=11205)
      0.109375 = fieldNorm(field=all_search, doc=3469163)



Reply via email to