[Rails] elasticsearch-lite

2019-12-25 Thread fugee ohu
i ran `yarn add elasticsearch-lite` and then `PORT=9200 node_modules/.bin/elasticsearch` internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'worker_threads' I'm doing this because my laptop can't handle elasticsearch -- You received this message because you are s

[Rails] elasticsearch heap size for development

2019-12-17 Thread fugee ohu
My laptop has 4GB RAM onboard (soldered) and like a 1.4ghz dual core cpu but it just can't handle a rails developers environment that includes running services like elasticsearch Since I have 4GB RAM what can I set min and max to in jvm.options to optimize performance -- You received this mess

[Rails] elasticsearch import namespaced model

2018-03-03 Thread fugee ohu
My model looks like below but I've been trying to guess what model name to use for the elasticsearch import statement Anyone can help? module Blogit class Post < ActiveRecord::Base include Elasticsearch::Model include Elasticsearch::Model::Callbacks .import force: true self.table_name

Re: [Rails] elasticsearch on linux mint 18 development env

2016-12-24 Thread fugee ohu
On Wednesday, December 21, 2016 at 10:19:59 PM UTC-5, Hassan Schroeder wrote: > > On Wed, Dec 21, 2016 at 6:08 PM, fugee ohu > wrote: > > > hi thanks, i got it running but even still i can't connect on 9200 and > > netstat shows nothing at 9200; i've tried plugging different values for > > n

Re: [Rails] elasticsearch on linux mint 18 development env

2016-12-21 Thread Hassan Schroeder
On Wed, Dec 21, 2016 at 6:08 PM, fugee ohu wrote: > hi thanks, i got it running but even still i can't connect on 9200 and > netstat shows nothing at 9200; i've tried plugging different values for > network.host tried everything from localhost to _localhost_ to > _localhost_IPv4 but still can't c

Re: [Rails] elasticsearch on linux mint 18 development env

2016-12-21 Thread fugee ohu
On Friday, December 16, 2016 at 10:16:31 AM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 15, 2016 at 11:24 PM, fugee ohu > wrote: > > > haven't been able to connect on localhost:9200 > > If you've followed the official Elasticsearch installation process (which > is > pretty minimal) and it

Re: [Rails] elasticsearch on linux mint 18 development env

2016-12-16 Thread Hassan Schroeder
On Thu, Dec 15, 2016 at 11:24 PM, fugee ohu wrote: > haven't been able to connect on localhost:9200 If you've followed the official Elasticsearch installation process (which is pretty minimal) and it's not running, *look in the logs and figure out why*. Alternatively, for learning purposes at l

[Rails] elasticsearch on linux mint 18 development env

2016-12-15 Thread fugee ohu
The docs at https://github.com/elastic/elasticsearch-rails just say to run ` gem install elasticsearch-model elasticsearch-rails` and don't even say to put `gem elasticsearch-model` and `gem elasticsearch-rails` in my gemfile but if i don't the webrick server won't start I think the docs fail to

[Rails] elasticsearch basic usage with has_many model relationships

2016-03-20 Thread fugee ohu
The docs for elasticsearch on github show me basic usage like @users = User.search(@query).records but actually users has_many other models and i want my searches to match any fields from any of the child models, how would i write such searces? ~ thanks -- You received this message because y

Re: [Rails] elasticsearch

2016-03-12 Thread fugee ohu
On Friday, March 11, 2016 at 4:21:59 PM UTC-5, Hassan Schroeder wrote: > > On Fri, Mar 11, 2016 at 12:03 PM, fugee ohu > wrote: > > >> Alternatively, you can submit issues on github as well. Perhaps it's > >> time to explore github a little more :-) > > > It works on my desktop, but not my la

Re: [Rails] elasticsearch

2016-03-11 Thread Hassan Schroeder
On Fri, Mar 11, 2016 at 12:03 PM, fugee ohu wrote: >> Alternatively, you can submit issues on github as well. Perhaps it's >> time to explore github a little more :-) > It works on my desktop, but not my laptop Could it be because my laptop has > 2 network adapters, wireless and wired? Huh, wha

Re: [Rails] elasticsearch

2016-03-11 Thread fugee ohu
On Friday, March 11, 2016 at 2:35:45 PM UTC-5, Hassan Schroeder wrote: > > On Fri, Mar 11, 2016 at 10:45 AM, fugee ohu > wrote: > > > I have looked for the author's email i couldn't find it Where do i > submit a > > doc PR? I can guess the R means request I dunno what the P means > > PR stan

Re: [Rails] elasticsearch

2016-03-11 Thread Hassan Schroeder
On Fri, Mar 11, 2016 at 10:45 AM, fugee ohu wrote: > I have looked for the author's email i couldn't find it Where do i submit a > doc PR? I can guess the R means request I dunno what the P means PR stands for Pull Request - https://help.github.com/articles/using-pull-requests/ Alternatively, y

[Rails] elasticsearch configuration listinening on a particular ip address

2016-03-11 Thread fugee ohu
I have elasticsearch installed on 2 machines, both the same operating system, linux mint 17.2, elasticsearch raises errors (transport errorss not found) on my laptop but not my desktop The significant difference between the 2 is that my laptop has 2 network interfaces (wired and wireless) and

Re: [Rails] elasticsearch

2016-03-11 Thread fugee ohu
On Friday, March 11, 2016 at 9:19:07 AM UTC-5, Hassan Schroeder wrote: > > On Thu, Mar 10, 2016 at 3:11 PM, fugee ohu > wrote: > > Why doesn't the elasticsearch github page say anything about ... > > Shouldn't you ask that of the page author(s)? Or submit a doc PR? > > -- > Hassan Schroeder

Re: [Rails] elasticsearch

2016-03-11 Thread Hassan Schroeder
On Thu, Mar 10, 2016 at 3:11 PM, fugee ohu wrote: > Why doesn't the elasticsearch github page say anything about ... Shouldn't you ask that of the page author(s)? Or submit a doc PR? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter:

[Rails] elasticsearch

2016-03-10 Thread fugee ohu
Why doesn't the elasticsearch github page say anything about having to install elasticsearch as a service on the host and that it should be running on port 9200 I google this farraday error and all results point to the elasticsearch service supposed to be running on 9200 So where's this in the

Re: [Rails] Elasticsearch::Transport::Transport::Errors::NotFound in Devise::SessionsController#create

2016-01-05 Thread Vineeth B S
Hey Fugee, I'm not exactly sure what you are trying to do when you are signing in(SessionsController#create), but maybe, https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-transport#exception-handling might give you some insight about the error that you are seeing. On Tue,

[Rails] Elasticsearch::Transport::Transport::Errors::NotFound in Devise::SessionsController#create

2016-01-04 Thread fugee ohu
I'm on linux mint I didn't find enough info googling this error The model i've configured to use elasticsearch is User or user.rb -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails f