File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -717,13 +717,10 @@ func (b optionBuilder) shouldTryCteStrategy() bool {
717
717
if ! b .limit .Valid || len (b .orderBy ) == 0 {
718
718
return false
719
719
}
720
- if b .tsquery != "" {
721
- return true
722
- }
723
720
for _ , f := range b .facets {
724
721
if f .TriggersCte () && len (f .Filter ()) > 0 {
725
722
return true
726
723
}
727
724
}
728
- return false
725
+ return b . tsquery != "" && ( len ( b . orderBy ) != 1 || b . orderBy [ 0 ]. Column . Name != QueryStringRankField || ! b . orderBy [ 0 ]. Desc )
729
726
}
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ func TorrentContentTypeFacet(options ...query.FacetOption) query.Facet {
17
17
query .FacetHasKey (TorrentContentTypeFacetKey ),
18
18
query .FacetHasLabel ("Content Type" ),
19
19
query .FacetUsesOrLogic (),
20
- query .FacetTriggersCte (),
21
20
}, options ... )... ,
22
21
),
23
22
field : func (q * dao.Query ) field.Field {
You can’t perform that action at this time.
0 commit comments