As a workaround, can you try field boosting? On Tue, 12 May 2020 at 00:45, Stephen Lewis Bianamara < stephen.bianam...@gmail.com> wrote:
> Hi SOLR Community, > > What is the order of operations which SOLR applies to sorting? I've > observed many times and across SOLR versions that a restrictive filter with > a sort takes an extremely long time to return, suggesting to me that the > SORT is applied before the filter. > > An example situation is querying for fq:Foo=Bar vs querying for fq:Foo=Bar > sort by Id desc. I've observed over many SOLR versions and collections that > the former is orders of magnitude cheaper and quicker to respond, even when > the result set is tiny (10-100). > > Does anyone in this forum know whether this is the default behavior and > whether there is any way through the API or SOLR configuration to apply > sorts after filters? > > Thanks, > Stephen > -- -- Regards, *Paras Lehana* [65871] Development Engineer, *Auto-Suggest*, IndiaMART InterMESH Ltd, 11th Floor, Tower 2, Assotech Business Cresterra, Plot No. 22, Sector 135, Noida, Uttar Pradesh, India 201305 Mob.: +91-9560911996 Work: 0120-4056700 | Extn: *1196* -- * * <https://www.facebook.com/IndiaMART/videos/578196442936091/>