Skip to content

Commit

Permalink
fix add relationship to index
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGardenDubai committed Oct 17, 2011
1 parent a346ddc commit 9b97130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/neography/rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ def create_relationship_index(name, type = "exact", provider = "lucene")
end

def add_relationship_to_index(index, key, value, id)
options = { :body => (self.configuration + "/relationship/#{get_id(id)}").to_json, :headers => {'Content-Type' => 'application/json'} }
post("/index/relationship/#{index}/#{key}/#{value}", options)
options = { :body => ({:uri => self.configuration + "/relationship/#{get_id(id)}", :key => key, :value => value}).to_json, :headers => {'Content-Type' => 'application/json'} }
post("/index/relationship/#{index}", options)
end

def remove_relationship_from_index(*args)
Expand Down

0 comments on commit 9b97130

Please sign in to comment.