Skip to content

Required and scored predicates #28

@mhluongo

Description

@mhluongo

And, it happened. We need a way to require, exclude, prefer, or not prefer based on predicates. The current plan is to add two additional fields to the get-or-create POST call. We're co-opting some terms from search engines here-

{
    "browser_name":"phantomjs",
    "require": ["and",
        ["session_tag", "starbucks"],
        ["not", ["node_tag", "starbucks"]],
        ["browser", "chrome"]
    ],
    "score": [
        ["2", ["node_tag", "starbucks"]],
        ["1", ["or", ["node_tag", "walmart"], ["session-tag", "starbucks"]]]
    ]
}

Basically, there are a few built-in domain predicates (session_tag, node_tag, browser, reserved, id) and the basic connectives.

Fun!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions