Skip to content

v0.36.0 ๐Ÿ

Latest
Compare
Choose a tag to compare
@meili-bot meili-bot released this 20 Jun 02:13
c5293d9

โš ๏ธ Breaking changes

  • Fix Document model: bad test, attribute bug, and field cleanup (#1113) @nnethercott

    ๐Ÿ›  migration path

    What changed?

    • The internal __doc field in Document has been removed to avoid data duplication.
    • Document.__getattr__ now correctly returns attribute values rather than the attribute name itself.

    Impact

    • Code relying on internal access to document._Document__doc (e.g. through iterators) will break.
    • Behavior of doc.getattr("field") is now consistent and correct.

    What you need to do:

    • If you were manually accessing document._Document__doc, switch to using direct attribute access or casting with dict(doc).

    example updated usage

    doc = index.get_document("foo")
    doc_dict = dict(doc) 
    doc_dict.pop("_Document__doc")  # โŒ Not needed anymore
  • Refactor TaskResults, IndexStats (#1066) @ellnix (โš ๏ธ this potentially have a breaking-change)

๐Ÿš€ Enhancements

โš™๏ธ Maintenance/misc

Thanks again to @MuddyHope, @brunoocasali, @ellnix, @nnethercott, @thicolares! ๐ŸŽ‰