Code Monkey home page Code Monkey logo

Comments (3)

theotherp avatar theotherp commented on June 4, 2024

Hm, didn't think that through.

If I add all the required words to a query of course they will all be required. The alternative would be to not add them at all if the option to only require at least one (or x) to be present. The obvious downside is that the results are only filtered after the indexer was called. Depending on the words this would mean to potentially throw away a lot of results which could result in more API calls.

If I choose to add that option the user should be very certain that that is what he wants.

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

On the other hand that can "easily" be achieved using required regexes:
(option1|option2) matches any result that has "option1" or "option2" in its title.

(?=.*musthavethis)(?=.*andhavethis) matches any result that has "musthavethis" and "andhavethis" in any order in its title.

Ah, the magic of regex. https://xkcd.com/208/

from nzbhydra2.

TChilderhose avatar TChilderhose commented on June 4, 2024

I agree with you that the ability of regex might be better suited for this and has the bonus of it already being implemented. While it is less user friendly overall, it definitely is more powerful. So I think how it is currently setup is good.

from nzbhydra2.

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.