On 9/12/2019 12:43 AM, Ashwin Ramesh wrote:
I just tried a * query with filters with fl=id,score. I noticed that all
scores were 1.0. Which I assume means no scoring was done. When I added a
sort after that test, scores were still 1.0.
I guess all I have to do is set q=* & set a sort.
Don't use q=* for your query. This is a wildcard query. What that means
is that if the field you're querying contains 10 million different
values, then your actual query will be built with all 10 million of
those values. It will be huge, and VERY slow.
Use q=*:* if you mean all documents. This is special syntax that Lucene
and Solr understand and translate into a very fast "all documents
query". That query will probably also generate 1.0 for scores, though I
haven't checked.
Thanks,
Shawn