smart_search 0.0.78 → 0.0.79
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smart_search.rb +0 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62dbf1c59fdc7b6437961e88670fc3c88367d376
|
4
|
+
data.tar.gz: 4bf90b56b6d8354d9b9db7422973b48a69a29904
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76240f88dbaccbf77a5c3ad4bec12f57c1657ccb67d4488d7abea26ba15b795387a05f616383c1833520866d137d033330e18c94250d9d1613c6614d5c670de1
|
7
|
+
data.tar.gz: 8750f3440e155d09a0cee75708611f8a3c880ca8567d1f70aac188d06dc81b6a601ffddb5c1134edc3a8e76cc15282b2be2430ee0a27157945372ad928e36087
|
data/lib/smart_search.rb
CHANGED
@@ -144,13 +144,11 @@ module SmartSearch
|
|
144
144
|
self.all.each_with_index do |a, i|
|
145
145
|
a.create_search_tags
|
146
146
|
done = ((i+1).to_f/s)*100
|
147
|
-
printf "Set search index for #{self.name}: #{done}%% \r"
|
148
147
|
end
|
149
148
|
end
|
150
149
|
|
151
150
|
# Load all search tags for this table into similarity index
|
152
151
|
def set_similarity_index
|
153
|
-
|
154
152
|
search_tags_list = self.connection.select_all("SELECT search_tags from #{SmartSearchTag.table_name} where `table_name` = #{self.table_name}").map {|r| r["search_tags"]}
|
155
153
|
|
156
154
|
SmartSimilarity.create_from_text(search_tags_list.join(" "))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.79
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Eck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -109,15 +109,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.4.
|
112
|
+
rubygems_version: 2.4.5.1
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Simple, easy to use search MySQL based search for ActiveRecord
|
116
116
|
test_files:
|
117
117
|
- test/test_document_multi_line.txt
|
118
|
-
- test/test_document_one_line.txt
|
119
118
|
- test/test_helper.rb
|
120
|
-
- test/unit/01_smart_search_test.rb
|
121
|
-
- test/unit/02_smart_search_similarity_test.rb
|
122
119
|
- test/unit/03_smart_search_boost_test.rb
|
120
|
+
- test/unit/02_smart_search_similarity_test.rb
|
121
|
+
- test/unit/01_smart_search_test.rb
|
122
|
+
- test/test_document_one_line.txt
|
123
123
|
has_rdoc:
|