Comments (8)
@charlesdeb, i got it, you need to check every model in settings Refinery.searchable_models = [Refinery::Page, Refinery::News::Item, Refinery::Notices::Notice]
to make sure every model has this line acts_as_indexed :fields => [:field]
, if you don't have acts_as_indexed :fields => [:field]
in the model, you will got this error.
from refinerycms-search.
Just to confirm I am experiencing the same issue with the same gem versions.
from refinerycms-search.
Adding this gem got rid of the error:
gem 'refinerycms-acts-as-indexed', '~> 1.0.0'
from refinerycms-search.
Great work @gajeev! Fixed the issue for me. I submitted a quick pull request to add dependency to the gemspec, but you deserve all the credit for tracking down the fix to this issue.
from refinerycms-search.
thanks @kgautreaux!
from refinerycms-search.
Merged the fix.
from refinerycms-search.
Dear folks,
I am getting the same error. Search works fine for refinerycms-pages, but i get the same error message as reported previously when trying to use the search in a generated engine.
My application gemfile.lock has these lines:
refinerycms-search (2.1.0)
refinerycms-acts-as-indexed (~> 1.0.0)
refinerycms (2.1.0)
Using rails 3.2.15
I also ensured that the search refinerycms-search and refinerycms-acts-as-indexed were in my engine gemfile (and did a bundle install for them too - although I don't think makes any difference for running the app - just for testing right?)
Not sure if it's of any relevance, but I am using i18n across my whole application.
from refinerycms-search.
@charlesdeb +1, same error !
from refinerycms-search.
Related Issues (20)
- this gem cripples elastic beanstalk deployment HOT 4
- Need way to specify model name in search results HOT 6
- error: cannot load refinerycms/tags HOT 1
- Undefined method 'today' for Date:Class on Heroku. HOT 1
- Does not work with refinerycms-core (3.0.0) / Rails 4 HOT 3
- Draft pages appear in search results HOT 3
- Resave / Rebuild index HOT 4
- No results for search in Russian HOT 7
- Porblems - search page content HOT 6
- Result with special caracters and without them doesn't show the same result HOT 1
- Please add a "source code" link to your rubygems page HOT 5
- Not compatible with refinery 3? HOT 6
- Searching not working entirely... HOT 6
- search with chinese not work HOT 4
- NoMethodError: undefined method `safe_constantize' HOT 1
- cannot load such file -- refinery/core/nil_user HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refinerycms-search.