Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Introspected (Automatic) Django Mapping #156
Would it be worthwhile to include something along the lines of https://gist.github.com/emidln/5977325 to support quicker integration into Django projects? That code is only partially tested (which is why it's a gist and not a pull request). It's based on the way Haystack does introspection and, by default, relies on ElasticSearch's implicit mapping process. I've been using this locally to rapidly prototype things I've built in Django using the ORM that I know will eventually become more complex (and thus why I'm on elasticutils instead of haystack).
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I think this is helpful for people throwing things together when the data in their db matches the documents in their index. But once you stray from that path, this isn't helpful and it gets in the way.
I'm not sure this is something I want to maintain. I see the benefits in prototyping, but I suspect it'll become a magnet for infinite edge case handling as folks discover it doesn't do exactly what they want it to do.
Having said that, I have no way to measure what peoples' actual needs are and how this will actually play out, so I'm up for leaving this issue open and seeing if it gains momentum.