Giter Club home page Giter Club logo

Comments (9)

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

Hello!

I am very glad to hear that you like tiedot.

Did you mean using regular expression to filter certain attribute in query result? For example, matching /(good)|(average)/ in document's "grade".

from tiedot.

mandolyte avatar mandolyte commented on May 18, 2024

Yes, or more complex: /[AF]/ in document's "grade". The high and low performers. Or again, to do wildcard searching,such as

  • all names ending in the letter "n": /n$/
  • all codes beginning with a letter and ending in a digit: /^[0-9].*[A-Z]$/

Since Go has a regexp package (http://golang.org/pkg/regexp/), I thought it would be pretty easy and would be nice addition the current eq, range, and set operations. In SQL I use wildcards a lot and noticed the absence in tiedot right away.

from tiedot.

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

Oh! I see.

In that case, I am afraid that index scan cannot help much at this stage, regex filter can be applied in collection scan (which is still quite fast).

from tiedot.

mandolyte avatar mandolyte commented on May 18, 2024

So would it look something like this?

q='{"re": "Go|Clojure", "in": ["Title"]}'

to find every title with either "Go" or "Clojure" in the title.

Thanks for considering,
Cecil

from tiedot.

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

That sounds like a great idea, let's do it.

from tiedot.

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

Fixed in d76e5aa thanks to NoahShen

from tiedot.

mandolyte avatar mandolyte commented on May 18, 2024

Great! Don't forget to update the docs to show how to use it!

On Thu, Nov 7, 2013 at 1:47 AM, Howard Guo [email protected] wrote:

Fixed in d76e5aahttps://github.com/HouzuoGuo/tiedot/commit/d76e5aa969b2e3cfb0a98cce9b77c077345741c9thanks to NoahShen


Reply to this email directly or view it on GitHubhttps://github.com//issues/27#issuecomment-27941459
.

from tiedot.

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

will do

from tiedot.

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

Completed 9a5026a

from tiedot.

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.