Hey there, I'm Maurício Linhares 👋
- Senior Engineer at DigitalOcean
- https://hipsters.tech/ Co-host
acts_as_solr active_record plugin to make your active_record models indexable using the Solr full text search tool
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.