Comments (10)
I've started work on the "persistence" layer for this, it's not yet finished, ETA in couple of weeks. There's a discussion in #4.
from elasticsearch-rails.
Great!
from elasticsearch-rails.
The working version of the repository pattern implementation added in #71.
from elasticsearch-rails.
Great work there!
A question though, what is the use case for each pattern?
Should I use the Repository pattern? (the API doesn't quite feel right for me),
or should I wait for the ActiveRecord pattern?
I really wish the DSL mimics something like mongoid's.
from elasticsearch-rails.
The notation you have originally described is indeed typical for the ActiveRecord-like patterns. That is not yet implemented, so if you want to do that, you have to wait for it to be coded (should be released in couple of weeks).
from elasticsearch-rails.
Thanks.
Is the ActiveRecord pattern implemented on top of the Repository Pattern?
I still don't understand the use case of the Repository Pattern.
from elasticsearch-rails.
Ah, one more thing.
Will the AR like pattern use ActiveModel and works seamlessly with form helper etc?
Thanks.
from elasticsearch-rails.
Yes, that's the main motivation, to be a drop-in replacement for ActiveRecord::Base
based models.
from elasticsearch-rails.
This look really nice, thank you!
from elasticsearch-rails.
Closing this, let's centralize the discussion in #78.
from elasticsearch-rails.
Related Issues (20)
- 8.x support HOT 24
- Batch size is ignored when fetching documents from MongoDB
- NPE happens on short prefix query on a field with index_prefixes
- Indexes are not refreshing, even with refresh_interval being set
- Disable automatic callbacks in rspec
- Not getting any records from elasticsearch HOT 1
- FYI gem version 6.1.1 was pushed without any changes HOT 1
- elasticsearch-model 7.2.1 introduces circular dependency with ruby 2.7 and rubygems 3.2.5 HOT 1
- specify an alias near the index_name in an AR model HOT 1
- Illegal argument "type" sent in all requests upgrading to 8.x HOT 1
- Not able to update single record too please help me to here HOT 1
- How to import into two clusters
- Mapping Two Ruby on Rails Models with Different Attribute Names to a Shared Elasticsearch Index using 'elasticsearch-rails'
- update_document not selective enough
- Backward compatibility for older Elasticsearch version HOT 1
- Faraday::ConnectionFailed (end of file reached) HOT 1
- Elasticsearch - Unexpected Character Error (Minus Sign) HOT 1
- Unexpected behavior when searching from a scope
- Feature Suggestion - Get Indexed Document for Instance
- Deprecation warning in Rails 7.1 (support Rails 7.2)
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 elasticsearch-rails.