Hi!

I am currently developing a website with RoR & Couchbase. 

I am having trouble integrating Elasticsearch(ES) into the project.

All the examples/tutorials/guides I have found with ES is using 
ActiveRecords + SQL to integrate it, and that's not what Couchbase is 
about. 

So: 

I have set up the connection with ES using a elasticsearch.rb into 
config/initializers. 

( *the ES server is not on localhost )*

ELASTICSEARCH_URL = ENV['ELASTICSEARCH_URL'] || 
'http://********.*******:9200'

Elasticsearch::Model.client = Elasticsearch::Client.new host: 
ELASTICSEARCH_URL


So , I'm getting a connection, but I don't really know where to proceed 
after this. 


In my rails server log I'm getting ES in the query's but, it does not seem 
to be working.

Started GET "/*******?utf8=%E2%9C%93&q=test&commit=search" for 127.0.0.1 at 
2014-06-05 11:42:11 +0200

Processing by ********#index as HTML

  Parameters: {"utf8"=>"✓", "q"=>"test", "commit"=>"search"}

  Rendered *******/index.html.erb within layouts/application (2116.8ms)

Completed 200 OK in 2305ms (Views: 2155.8ms | Elasticsearch: 0.0ms)


As you can see here, it seems like it does nothing. 


Any ideas on how to implement it further?


Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to