solr_lite 0.0.12 → 0.0.13
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_params.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04c666a78bdf04147350b03ee3f430fdafe36cabfc5d5869538dbbf1e7a963d9
|
|
4
|
+
data.tar.gz: cee4e1f082d4a9cbae8ee9e6fb136efd4a20562648a324d62cc7d040d38b672b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23b83c4f7e1f495631f9f01f4f939828a0dbfe78f06397fd2873e99fa2e7b722bf960c7412da0a89be914976b9eaed4a51cf6c9133e66dc674414a6e29d2b7c2
|
|
7
|
+
data.tar.gz: 62cbe1329b68a5529c1e0b6c916261d1da9a56fcc9a44981a748a0a1dc34fc44db1713b2e2a50f5601631418fc64698844c508c85d5e91f7e3d3f0f1a5510602
|
data/lib/search_params.rb
CHANGED
|
@@ -21,7 +21,7 @@ module SolrLite
|
|
|
21
21
|
# [Integer] Number of documents per page to request from Solr.
|
|
22
22
|
attr_accessor :page_size
|
|
23
23
|
|
|
24
|
-
# [
|
|
24
|
+
# [Array] List of fields names to request from Solr.
|
|
25
25
|
attr_accessor :fl
|
|
26
26
|
|
|
27
27
|
# [String] Sort string to pass to Solr.
|
|
@@ -183,7 +183,7 @@ module SolrLite
|
|
|
183
183
|
if @hl
|
|
184
184
|
qs += "&hl=true"
|
|
185
185
|
if @hl_fl != nil
|
|
186
|
-
qs += "&hl.fl
|
|
186
|
+
qs += "&hl.fl=" + CGI.escape(@hl_fl)
|
|
187
187
|
end
|
|
188
188
|
if @hl_snippets > 1
|
|
189
189
|
qs += "&hl.snippets=#{@hl_snippets}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solr_lite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hector Correa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A lightweight gem to connect to Solr and run queries. Requires no extra
|
|
14
14
|
dependencies.
|