Ah! Thanks so much! On Thu., 12 Sep. 2019, 11:56 pm Shawn Heisey, <elyog...@elyograg.org> wrote:
> 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 > -- *P.S. We've launched a new blog to share the latest ideas and case studies from our team. Check it out here: product.canva.com <https://product.canva.com/>. *** ** <https://www.canva.com/>Empowering the world to design Also, we're hiring. Apply here! <https://about.canva.com/careers/> <https://twitter.com/canva> <https://facebook.com/canva> <https://au.linkedin.com/company/canva> <https://twitter.com/canva> <https://facebook.com/canva> <https://au.linkedin.com/company/canva> <https://instagram.com/canva>