Git Product home page Git Product logo

Comments (8)

dfang avatar dfang commented on June 11, 2024 1

@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.

kgautreaux avatar kgautreaux commented on June 11, 2024

Just to confirm I am experiencing the same issue with the same gem versions.

from refinerycms-search.

gajeev avatar gajeev commented on June 11, 2024

Adding this gem got rid of the error:
gem 'refinerycms-acts-as-indexed', '~> 1.0.0'

from refinerycms-search.

kgautreaux avatar kgautreaux commented on June 11, 2024

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.

gajeev avatar gajeev commented on June 11, 2024

thanks @kgautreaux!

from refinerycms-search.

parndt avatar parndt commented on June 11, 2024

Merged the fix.

from refinerycms-search.

charlesdeb avatar charlesdeb commented on June 11, 2024

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.

dfang avatar dfang commented on June 11, 2024

@charlesdeb +1, same error !

from refinerycms-search.

Related Issues (20)

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.