GithubHelp home page GithubHelp logo

Comments (4)

vincentdchan avatar vincentdchan commented on May 18, 2024 1

Hi! This feature has not been implemented yet. However, if MongoDB implements it, I will add it to the roadmap. As I am currently working on implementing create_index, this will be considered a lower priority.

If you are interested, pull requests are also welcome.

from polodb.

vincentdchan avatar vincentdchan commented on May 18, 2024 1

Thanks for your interests! Implementing this is not a simple task, but I can provide you with some ideas.

  1. Recognize $regex semantics in polodb_core/vm/subprogram.rs. You can try to understand the test print_complex_print.
  2. Add an op to represents the regex tester in polodb_core/vm/op.rs
  3. Modify subprogram to compile your regex tester op.
  4. Implement the new OP in polodb_core/vm/vm.rs
  5. Add unit tests

Don't know if it would be too difficult for you. You can give it a try~

from polodb.

DataHearth avatar DataHearth commented on May 18, 2024

@vincentdchan Hey! I started working on this feature on my free time ^^. But I'm quite lost with the codebase (firsttime with a big rust codebase ^^"). Do you know how I could debug the behavior of the evaluation on the $regex or any other query like evaluation ?

At first glance, it seems that the bson::bson::Regex is translated to plain text and not interpreted/evaluated for this case.

Thanks !

from polodb.

DataHearth avatar DataHearth commented on May 18, 2024

Thanks the tips! I'll give it a try 😄.

from polodb.

Related Issues (20)

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.