Code Monkey home page Code Monkey logo

acts_as_solr's Introduction

acts_as_solr's People

Contributors

mauricio avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

acts_as_solr's Issues

SQL-Server 2005 indexing: private method `gsub!' called for 28:Fixnum

Hello Mauricio,

I cannot index a SQL-Server 2005 table with your version of acts_as_solr. On the very first document (first row of the table), I get an error see below for trace. It seems that integer fields are not converted to strings so gsub fails of course. This is not a problem with the original acts_as_solr, only your version. Because of will_paginare integration, I would like to use your branch, please fix it. Thank You!

ENV: Rails 2.3.2, activerecord-sqlserver-adapter (2.2.19) gem

rake solr:rebuild_index --trace
(in /var/www/r_tools)
** Invoke solr:rebuild_index (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute solr:rebuild_index
Rebuilding indexes for -> [Product(ARTICLEID: integer, COMPANY_ID: integer, ARTICLENO: string, EAN: string, STOCK: integer, EXPECTED: integer, ARTIST: string, TITLE: string, LABEL: string, PRICECODEID: integer, PRICECODE: string, MUSICSTYLEID: integer, MUSICSTYLE: string, RELEASEDATE: datetime, ARTICLEGROUPID: integer, ARTICLEGROUP: string, FORMATGROUP: string, PROGRAMSTYLEID: integer, PROGRAMSTYLE: string, EXCLUSIVE: string, MAJOR: string, GADP: integer, ON_SALE: integer, SALESAREAID: string, SALESAREA: string, WEBFLAG: integer, SALESSTOP: integer, VALIDSALES: datetime, AGELIMIT: integer)]
rake aborted!
private method `gsub!' called for 28:Fixnum
(eval):4:in `ARTICLEID_for_solr'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/instance_methods.rb:79:in `send'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/instance_methods.rb:79:in `to_solr_doc'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/instance_methods.rb:63:in `each'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/instance_methods.rb:63:in `to_solr_doc'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/class_methods.rb:158:in `rebuild_solr_index'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/class_methods.rb:158:in `collect'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/class_methods.rb:158:in `rebuild_solr_index'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/acts_as_solr.rb:70:in `rebuild_solr_index'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/acts_as_solr.rb:69:in `each'
/var/www/r_tools/vendor/plugins/acts_as_solr/lib/acts_as_solr.rb:69:in `rebuild_solr_index'
/var/www/r_tools/vendor/plugins/acts_as_solr/tasks/solr.rake:96

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.