GithubHelp home page GithubHelp logo

pmourlanne / fiqs Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 482 KB

Opinionated high level library to query Elasticsearch

Home Page: http://fiqs.rtfd.io/

License: MIT License

Python 100.00%
elasticsearch python

fiqs's People

Contributors

benjaminrigaud avatar pmourlanne avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

quividi

fiqs's Issues

ES6 compatibility

Hello Pierre ๐Ÿ‘‹,

I was testing fiqs with ES6, and I ran into 5 tests that are broken:

  • fiqs/tests/test_fields.py::test_mapping_from_model FAILED
  • fiqs/tests/test_fields.py::test_mapping_from_model_child_class FAILED
  • fiqs/tests/test_query.py::test_order_by FAILED
  • fiqs/tests/test_query.py::test_order_by_multiple_group_by FAILED
  • fiqs/tests/test_query.py::test_order_by_field_with_choices FAILED

The first two end with an exception that I also get when I try to run our own code, which goes like this:

AttributeError: 'Nested' object has no attribute 'field'

The exception happens in:

fiqs/models.py:94: in get_mapping nested_mapping.field(field.storage_field, field.type)

I suppose this is due to a breaking change in elasticsearch_dsl >= 6:

https://elasticsearch-dsl.readthedocs.io/en/latest/Changelog.html#id11

I tried playing around with the fiqs code, using Nested(InnerDoc) as the changelog of elasticsearch_dsl seems to say, but I can't figure it out ๐Ÿ˜ฟ.

I'll do some reading and try again, but any help is very welcome ๐Ÿบ.

Jan

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.