neo4j-searchkick 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/README.md +5 -3
- data/lib/neo4j/searchkick.rb +1 -1
- data/lib/neo4j/searchkick/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92cc6ec36c3f79d2e1c6400d5bc94fab5798564f
|
4
|
+
data.tar.gz: 96b90ee444af4a5a13c8631825a1fc7764fbc92b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c066d9d2617b3aec56aebbe892191050e4220aa1770d5a32dfec3dd41db40b9d6c6636d4dd9947fae01c7570f63d45b8fdb0eec7b97deac36a41f2b599c12055
|
7
|
+
data.tar.gz: 7293d15e05c334354744412d4a150fe65f6d25e169d919e5716935eca36fb00dc915f7ecbd485e0c42872dced27f5ef2faa201ba6c2f7288a1951f5de7e37fef
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -20,13 +20,15 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
Use with Searchkick as you would normally. See [Searchkick's documentation](https://github.com/ankane/searchkick) for more information.
|
22
22
|
|
23
|
-
At the moment, this gem is not built with Neo4j performance in mind. ActiveRel's queries are not using parameters and as a result, you may take a performance
|
24
|
-
hit if using this in a busy production environment. Please see Github issues or contact Chris if you'd like to help or an update on the status.
|
25
|
-
|
26
23
|
TODO:
|
27
24
|
|
28
25
|
* Tests would be nice.
|
29
26
|
|
27
|
+
## BEWARE!
|
28
|
+
|
29
|
+
This gem is under development. Inclusion in your gemfile will use the Neo4j gem from the master branch. That branch is almost always stable but please be aware that
|
30
|
+
this may result in unexpected behavior.
|
31
|
+
|
30
32
|
## Contributing
|
31
33
|
|
32
34
|
1. Fork it ( https://github.com/[my-github-username]/neo4j-searchkick/fork )
|
data/lib/neo4j/searchkick.rb
CHANGED
@@ -17,7 +17,7 @@ module Searchkick
|
|
17
17
|
# ActiveRecord
|
18
18
|
records.where(records.primary_key => grouped_hits.map{|hit| hit["_id"] }).to_a
|
19
19
|
elsif records.respond_to?(:from_class)
|
20
|
-
records.
|
20
|
+
records.array_load(grouped_hits.map { |hit| hit['_id'].to_i })
|
21
21
|
elsif records.respond_to?(:all) and records.all.respond_to?(:for_ids)
|
22
22
|
# Mongoid 2
|
23
23
|
records.all.for_ids(grouped_hits.map{|hit| hit["_id"] }).to_a
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-searchkick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Grigg
|
@@ -107,3 +107,4 @@ signing_key:
|
|
107
107
|
specification_version: 4
|
108
108
|
summary: Provides support for Neo4jrb 3.0 ActiveRel models
|
109
109
|
test_files: []
|
110
|
+
has_rdoc:
|