Comments (7)
Could you provide the meilisearch configuration block in your model that is causing this warning?
from meilisearch-rails.
I didn't really help in any way. I tried but could not reproduce it, left the issue open to follow up if and when we refactored the gem.
from meilisearch-rails.
Here it is, and it is all configuration blocks not just one.
meilisearch do
attribute :name, :brand_name, :state_name, :created_at, :region_name, :brand_id
attribute :state_abbr do
state_abbreviation
end
attribute :store_chain do
store_chain_name || "Independent"
end
attribute :region_id do
region.id
end
filterable_attributes [:brand_name, :state_abbr, :region_name, :region_id, :brand_id]
sortable_attributes [:state_name, :brand_name, :region_name, :store_chain, :name]
end
from meilisearch-rails.
It does not happen to me on a brand new rails app and I cannot tell what could be causing the issue. The camel cased filterableAttributes
and sortableAttributes
do not appear in the source code at all, and this warning does occur in the test suite even though it has many meilisearch
blocks.
Some follow up questions if you don't mind answering:
- Are you manually creating a meilisearch index anywhere in your code?
- When precisely does this happen? After a record is created, when a search is run, when the app launches?
- Are you manually adding documents to the ms index anywhere?
from meilisearch-rails.
- What do you mean? I only have the meilisearch blocks on my models
- It happens when a record is added or updated
- Again what exactly do you mean by manual? With the rails console?
from meilisearch-rails.
2. It happens when a record is added or updated
Thank you
- What do you mean? I only have the meilisearch blocks on my models
3. Again what exactly do you mean by manual? With the rails console?
By manual I meant doing something like Product.index.add_documents(...)
directly (judging from your response you are not doing that). I will look into this and try to reproduce it again.
from meilisearch-rails.
@coder2000, are you still having the issue after @ellnix's help? Can you confirm your gems (meilisearch-ruby and meilisearch-rails are the latest?
from meilisearch-rails.
Related Issues (20)
- _geoBoundingBox filter causing an error HOT 2
- Index not created since 0.11.0 - 404 Not Found HOT 8
- Upgrading to 0.11.0 produces "The request was not processed in the expected time." repeatedly. HOT 1
- Split and decouple models in integration_spec.rb to their separate files
- Improve test robustness and confidence with end-to-end system tests
- Improve spec style clarity
- Add unit tests for individual methods
- Support and test Sequel properly
- Document multi_search interface in README HOT 1
- single index sharing didnt create new index. HOT 3
- Using attribute option with custom primary key will break fetching
- Polymorphic shared indexes HOT 3
- Index-first search HOT 1
- Rename root module to `Meilisearch` instead of `MeiliSearch`
- Refactor `meilisearch.rb`
- Global `ms_without_auto_index` in `Meilisearch`
- MeiliSearch::Rails::MSCleanUpJob 404 error when deleting records HOT 3
- Update Gem dependencies HOT 6
- Error: MeiliSearch::TimeoutError: The request was not processed in the expected time. HOT 29
- Race condition in proximity precision test
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 meilisearch-rails.