I was throwing a query for collapse in the firstSearcher setting, but it turned out to be useless. So I'm going to delete that setting.
Thanks. 2021年9月28日(火) 23:13 Joel Bernstein <[email protected]>: > Cache is set to false internally for the CollapsingQParserPlugin. So you > don't need to specify cache=false. > > > Joel Bernstein > http://joelsolr.blogspot.com/ > > > On Tue, Sep 28, 2021 at 5:57 AM Taisuke Miyazaki < > [email protected]> > wrote: > > > Hi, > > > > Will filter cache be created if I specify fq={!collapse field=key1}? > > > > I read in the documentation that if cache=false and cost=100, and the > query > > implements the PostFilter interface, it will not be cached, but will be > > used to filter documents after matching the filter query. > > > > > https://solr.apache.org/guide/8_8/common-query-parameters.html#cache-parameter > > > > It also says that for some types of queries, cost=100 by default > (frange). > > And I saw in the source code of collapse that cost is 100. > > You can find it at > > > > > https://github.com/apache/lucene-solr/blob/05e2a91a2f27d2f121e5ff04b16796aadd91d8c3/solr/core/src/java/org/apache/solr/search/ > > CollapsingQParserPlugin.java#L351-L353 > > < > https://github.com/apache/lucene-solr/blob/05e2a91a2f27d2f121e5ff04b16796aadd91d8c3/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java#L351-L353 > > > > > > > > So, I assumed that the filter cache is not created in collapse, but if I > > don't specify cache=false explicitly, will the cache be created? > > > > Thanks, > > Taisuke > > >
