Giter Site home page Giter Site logo

elastic_searchable's People

Contributors

benoist avatar f1sherman avatar nz avatar scashin133 avatar wireframe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elastic_searchable's Issues

Should support ELASTICSEARCH_URL env var for easier Heroku integration

Hi @wireframe,

The ElasticSearch addon now in alpha at Heroku provides the ELASTICSEARCH_URL environment variable to specify where the index lives. Is there a way to facilitate integration for Heroku apps that want to use elastic_searchable?

To get more specific, I'm curious if the base_uri method already does the job…

ElasticSearchable.base_uri ENV['ELASTICSEARCH_URL']

Is that a reasonable approach?

Also, how about using that environment variable as the default when it is present and base_uri is not otherwise specified?

Just thinking out loud here, let me know your thoughts.

Also if you want to try out that ES addon alpha at Heroku I can set that up. Just send me a message with your account email address :)

—Nick

Rails3 compliance

I just wanted to try elastic_searchable with my shiny new rails3 Projekt.

bundle install complains about a activerecord version conflict:

Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
elastic_searchable depends on
activerecord (~> 2.3.5)

spatial_adapter depends on
  activerecord (3.0.3)

Is there a important reason to depend on a 2.x.x version of active_record? Would love to get it going with rails3.

Just asking, no rush. Maybe i figure out how to use with rails3. But maybe you already investigated on that.

Thx, Christoph

Unable to bulk index

I reverted my installed httparty gem back to "0.6.0" and got elastic_searachable installed. Given my model is called "Poi". I created an index using "Poi.create_index" and then tried to index all pois using "Poi.reindex" but it doesnt work. It throws the following error:

reindexing batch #1...
Unable to bulk index record: #<Poi osm_id: 19, version: 2, tags: {"wheelchair"=>"unknown", "box_type"=>"lamp_box", "amenity"=>"post_box", "last_collection_sat"=>"0945", "ref"=>"SG4 90", "last_collection_mf"=>"1630"}, geom: #<GeoRuby::SimpleFeatures::Point:0x10530a240 @x=-0.20698, @m=0.0, @with_z=false, @z=0.0, @ srid=-1, @y=51.9458753, @with_m=false>, status: 8, created_at: "2011-03-31 06:25:58", updated_at: "2011-03-31 06:29:49"> [undefined method `merge!' for nil:NilClass]

Is it related to the mysql geospatial index? I had another error before, because updated_at and created_at wasn't set. But now i got stuck with this error message. Does it sound familiar?

Any help is appreciated.

Christoph

License missing from gemspec

RubyGems.org doesn't report a license for your gem. This is because it is not specified in the gemspec of your last release.

via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

Including a license in your gemspec is an easy way for rubygems.org and other tools to check how your gem is licensed. As you can image, scanning your repository for a LICENSE file or parsing the README, and then attempting to identify the license or licenses is much more difficult and more error prone. So, even for projects that already specify a license, including a license in your gemspec is a good practice. See, for example, how rubygems.org uses the gemspec to display the rails gem license.

There is even a License Finder gem to help companies/individuals ensure all gems they use meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough issue that even Bundler now generates gems with a default 'MIT' license.

I hope you'll consider specifying a license in your gemspec. If not, please just close the issue with a nice message. In either case, I'll follow up. Thanks for your time!

Appendix:

If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), GitHub has created a license picker tool. Code without a license specified defaults to 'All rights reserved'-- denying others all rights to use of the code.
Here's a list of the license names I've found and their frequencies

p.s. In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :). See the previous link or my blog post aobut this project for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.