search-engine-for-typesense 30.1.6.9 → 30.1.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/search_engine/partitioner.rb +5 -1
- data/lib/search_engine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8808e5d8eead1a6eeca5cf20d896f98a756be52651c7add70b9cd9a26dc26f71
|
|
4
|
+
data.tar.gz: ffca8d1f17ce2cc5547c0c1378b093fe6f9f7618359b52115c8b22a7be6f01da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f14038d4d393e51fd0e26360c836d30738ddfa5c72eab2ae78cf0fa5886cb7e067d325b195883257e1570f718c66c9ab4dc5ee452c1e2e9f8aeb2ba4d3924f89
|
|
7
|
+
data.tar.gz: '097fef3ea438c3d5434cfa6d37cad0ef16078d5073479d704a928ab1131ba6b56d67207a3df4672b40e89fd057c644f40067fd04b98bf8b154a3e1754ee560c9'
|
|
@@ -104,7 +104,11 @@ module SearchEngine
|
|
|
104
104
|
|
|
105
105
|
def extract_count(result)
|
|
106
106
|
relation = countable_relation_from(result)
|
|
107
|
-
relation
|
|
107
|
+
return nil unless relation
|
|
108
|
+
|
|
109
|
+
# Strip custom SELECT to ensure a clean COUNT(*) — aliased columns
|
|
110
|
+
# (e.g. "col AS alias") cause PG::SyntaxError inside COUNT().
|
|
111
|
+
relation.unscope(:select).count
|
|
108
112
|
rescue StandardError
|
|
109
113
|
nil
|
|
110
114
|
end
|