Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to do query like 'AND NOT' #4

Open
gqrlt1207 opened this issue Jun 1, 2018 · 6 comments
Open

how to do query like 'AND NOT' #4

gqrlt1207 opened this issue Jun 1, 2018 · 6 comments
Assignees

Comments

@gqrlt1207
Copy link

Hi, I tried to use graphit-tool.py to do some query like below:

AND NOT /MasterIssueID: * AND NOT ogit/_id:"cjhuol7om2sixbx421kvxfakx"

the above is from a KI, how can I query the 'AND NOT' using graphit-tool.py

please advise, many thanks,

@mklemm2
Copy link
Contributor

mklemm2 commented Jun 2, 2018

Easiest way is to use the "+/-" syntax:

graphit-tool.py vertex query --list -- +ogit/_type:ogit/Automation/MARSNode -ogit/Automation/marsNodeType:Software

will list all MARSNodes that are not Software nodes.

(The -- is needed so the -ogit/... is not confused with a command line argument.)

But I'll add more documentation on queries.

@mklemm2
Copy link
Contributor

mklemm2 commented Jun 2, 2018

TODO: Document how queries are passed to ElasticSearch. #

@mklemm2 mklemm2 self-assigned this Jun 2, 2018
@gqrlt1207
Copy link
Author

It works, thanks mklemm2.

@gqrlt1207
Copy link
Author

another question, if it's possible to do 'gremlin query' using graphit-tool.py?

@mklemm2
Copy link
Contributor

mklemm2 commented Jun 2, 2018

gremlin queries and the simplified "verb" query (one-hop graph traversal) are already in the dev branch, so it will be available soon.

@gqrlt1207
Copy link
Author

awesome, look forward to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants