lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject RE: Solr 7.3, FunctionScoreQuery no longer displays debug output
Date Thu, 17 May 2018 22:24:12 GMT
Thanks Yonik,

That is the suspect issue i stumbled upon when reading through the CHANGES.txt. Can you, or
someone, please verify this? I need to know this before i can file a bug.

There is a definitive difference in 7.2 and 7.3's respective outputs, i triple checked the
debug output. But on one hand i can't believe that issue was committed with this flaw. And
although we have a lot of custom code, we have nothing that should interfere this much with
the debug prints, or that should be obvious in the change log.

Please verify and let me open a ticket, or we'll change the discussion into what has changed
in Solr/Lucene so much, for us to get back on track.

Many thanks,
Markus
 
 
-----Original message-----
> From:Yonik Seeley <yseeley@gmail.com>
> Sent: Friday 18th May 2018 0:04
> To: solr-user@lucene.apache.org
> Subject: Re: Solr 7.3, FunctionScoreQuery no longer displays debug output
> 
> If this used to work, I wonder if it's something to do with changes to boost:
> https://issues.apache.org/jira/browse/LUCENE-8099
> 
> -Yonik
> 
> 
> On Thu, May 17, 2018 at 5:48 PM, Markus Jelsma
> <markus.jelsma@openindex.io> wrote:
> > Hello,
> >
> > Sorry to disturb. Is there anyone here able to reproduce and verify this issue?
> >
> > Many thanks,
> > Markus
> >
> >
> >
> > -----Original message-----
> >> From:Markus Jelsma <markus.jelsma@openindex.io>
> >> Sent: Wednesday 9th May 2018 18:25
> >> To: solr-user <solr-user@lucene.apache.org>
> >> Subject: Solr 7.3, FunctionScoreQuery no longer displays debug output
> >>
> >> Hi,
> >>
> >> Is this a known problem? For example, the following query:
> >> q=australia&debug=true&boost=if(exists(query($bqlang)),2,1)&bqlang=lang:en&defType=edismax&qf=content_en
content_ro
> >>
> >> returns the following toString for 7.2.1:
> >> boost(+(Synonym(content_en:australia content_en:australia) | Synonym(content_ro:austral
content_ro:australia)),if(exists(query(lang:en,def=0.0)),const(2),const(1)))
> >>
> >> 7.3:
> >> FunctionScoreQuery(+(Synonym(content_en:australia content_en:australia) | Synonym(content_ro:austral
content_ro:australia)), scored by boost(if(exists(query(lang:en,def=0.0)),const(2),const(1))))
> >>
> >> and the following debug output for 7.2.1:
> >>
> >> 11.226025 = boost((Synonym(content_en:australia content_en:australia) | Synonym(content_ro:austral
content_ro:australia)),if(exists(query(lang:en,def=0.0)),const(2),const(1))), product of:
> >>   11.226025 = max of:
> >>     11.226025 = weight(Synonym(content_ro:austral content_ro:australia) in 6761)
[SchemaSimilarity], result of:
> >>       11.226025 = score(doc=6761,freq=18.0 = termFreq=18.0
> >> ), product of:
> >>         5.442921 = idf(docFreq=193, docCount=44720)
> >>         2.0625 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1) from:
> >>           18.0 = termFreq=18.0
> >>           1.2 = parameter k1
> >>           0.0 = parameter b (norms omitted for field)
> >>   1.0 = if(exists(query(lang:en,def=0.0)=0.0),const(2),const(1))
> >>
> >> but for 7.3 i get only:
> >>
> >> 11.226025 = product of:
> >>   1.0 = boost
> >>   11.226025 = boost(if(exists(query(lang:en,def=0.0)),const(2),const(1)))
> >>
> >> The scores are still the same, but the debug output is useless. Removing the
boost fixes the problem of debug output immediately.
> >>
> >> Thanks,
> >> Markus
> >>
> >>
> 

Mime
View raw message