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: Query confusion - solr cloud 8.2.0
Date Wed, 08 Apr 2020 12:58:51 GMT
The easiest way to answer questions like this is an under-appreciated parameter “explainOther”
when submitted with “debug=true”. It’ll return an explanation of how the doc identified
by the “explainOther” parameter was scored.

See: https://lucene.apache.org/solr/guide/8_1/common-query-parameters.html

Best,
Erick

> On Apr 7, 2020, at 5:27 PM, Joe Obernberger <joseph.obernberger@gmail.com> wrote:
> 
> I'm running the following query:
> 
> id:COLLECT2601697594_T496 AND (person:[80 TO 100])
> That returns 1 hit.
> 
> The following query also returns the same hit:
> 
> id:COLLECT2601697594_T496 AND ((POP16_Rez1:blue_Sky AND POP16_Sc1:[80 TO 100]) OR (POP16_Rez2:blue_Sky
AND POP16_Sc2:[80 TO 100]) OR (POP16_Rez3:blue_Sky AND POP16_Sc3:[80 TO 100]) OR (POP19_Rez1:blue_Sky
AND POP19_Sc1:[80 TO 100]) OR (POP19_Rez2:blue_Sky AND POP19_Sc2:[80 TO 100]) OR (POP19_Rez3:blue_Sky
AND POP19_Sc3:[80 TO 100]) OR (ResN_Rez1:blue_Sky AND ResN_Sc1:[80 TO 100]) OR (ResN_Rez2:blue_Sky
AND ResN_Sc2:[80 TO 100]) OR (ResN_Rez3:blue_Sky AND ResN_Sc3:[80 TO 100]))
> 
> but AND'ing the two together returns 0 hits.  What am I missing?
> 
> id:COLLECT2601697594_T496 AND ((POP16_Rez1:blue_Sky AND POP16_Sc1:[80 TO 100]) OR (POP16_Rez2:blue_Sky
AND POP16_Sc2:[80 TO 100]) OR (POP16_Rez3:blue_Sky AND POP16_Sc3:[80 TO 100]) OR (POP19_Rez1:blue_Sky
AND POP19_Sc1:[80 TO 100]) OR (POP19_Rez2:blue_Sky AND POP19_Sc2:[80 TO 100]) OR (POP19_Rez3:blue_Sky
AND POP19_Sc3:[80 TO 100]) OR (ResN_Rez1:blue_Sky AND ResN_Sc1:[80 TO 100]) OR (ResN_Rez2:blue_Sky
AND ResN_Sc2:[80 TO 100]) OR (ResN_Rez3:blue_Sky AND ResN_Sc3:[80 TO 100])) AND (person:[80
TO 100])
> 
> Thank you!
> 
> -Joe
> 


Mime
View raw message