lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: SolrCloud FunctionQuery inconsistency
Date Mon, 02 Dec 2013 16:10:14 GMT
I'm not quite sure what you're seeing as
inconsistent, you didn't say. Is it the
maxScore? Did you index any docs
in the mean time? Even though both
show 121 docs, if you updated some
docs it might affect the score because
the terms from the old docs still affect
tf/idf calcs and thus the boosted score.

Or if an optimize or merge happened,
that might also affect things.

Best,
Erick


On Mon, Dec 2, 2013 at 3:33 AM, sling <sling358@gmail.com> wrote:

> Hi,
> I have a solrcloud with 4 shards. They are running normally.
> How is possible that the same function query returns different results?
> And it happens even in the same shard?
>
> However, when sort by "ptime desc", the result is consistent.
> The dateDeboost generate the time-weight from ptime, which is multiplied by
> the score.
>
> The result is as follows:
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":7,
>     "params":{
>       "fl":"id",
>       "shards":"shard3",
>       "cache":"false",
>       "indent":"true",
>       "start":"0",
>       "q":"{!boost b=dateDeboost(ptime)}channelid:0082 && (title:\"abc\" ||
> dkeys:\"abc\")",
>       "wt":"json",
>       "rows":"5"}},
>   "response":{"numFound":121,"start":0,"maxScore":0.5319116,"docs":[
>       {
>         "id":"9EORHN5I00824IHR"},
>       {
>         "id":"9EOPQGOI00824IMP"},
>       {
>         "id":"9EMATM6900824IHR"},
>       {
>         "id":"9EJLBOEN00824IHR"},
>       {
>         "id":"9E6V45IM00824IHR"}]
>   }}
>
>
>
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":6,
>     "params":{
>       "fl":"id",
>       "shards":"shard3",
>       "cache":"false",
>       "indent":"true",
>       "start":"0",
>       "q":"{!boost b=dateDeboost(ptime)}channelid:0082 && (title:\"abc\" ||
> dkeys:\"abc\")",
>       "wt":"json",
>       "rows":"5"}},
>   "response":{"numFound":121,"start":0,"maxScore":0.5319117,"docs":[
>       {
>         "id":"9EOPQGOI00824IMP"},
>       {
>         "id":"9EORHN5I00824IHR"},
>       {
>         "id":"9EMATM6900824IHR"},
>       {
>         "id":"9EJLBOEN00824IHR"},
>       {
>         "id":"9E1LP3S300824IHR"}]
>   }}
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/SolrCloud-FunctionQuery-inconsistency-tp4104346.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message