I don't have a lot of concrete suggestions as I'm not much of a rails developer, but you may want to take a look at the learningportal project we created in the past:
https://github.com/couchbaselabs/learningportal It is now a bit dated, designed to work with an older version of Couchbase and Elasticsearch. And the library used for querying Elasticsearch appears as though it may be deprecated. That said, looking at the code may give you a sense of how to integrate these technologies at a high level. In general, application functionality was implemented by running queries against Elasticsearch, then processing the results, and making additional calls to the Couchbase API to access full documents. Also, it may help if you can share more of your code. You said "it seems like it does nothing", but its not clear what you expected it to do either. marty On Thu, Jun 5, 2014 at 7:20 AM, CBDev01 <[email protected]> wrote: > 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. > -- 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.
