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

Bug when using metadataQuery via REST API #350

Open
bflashcp3f opened this issue Oct 26, 2021 · 2 comments
Open

Bug when using metadataQuery via REST API #350

bflashcp3f opened this issue Oct 26, 2021 · 2 comments
Assignees

Comments

@bflashcp3f
Copy link

bflashcp3f commented Oct 26, 2021

Describe the bug
I am using the web interface (http://localhost:xxxx/api#/details/search) to test different queries via REST API on the local data (100 files).

Without the metadataQuery, the Odinson query (?<reagent> [entity=B-Reagent][entity=I-Reagent]*) <acts-on (?<operator> [entity=B-Action][entity=I-Action]*) works perfect.

image

However, after adding metadataQuery like catalyst contains 'carbonate', it stops working.

image

It seems that the bug java.lang.NullPointerException comes from line 121 of "OdinConcatQuery.scala" if (pq.size() > 0) {.

image

Any idea about where the problem is, or could you please give me some pointers about potential solutions? @BeckySharp @danebell @myedibleenso @reynoldsm88 Thanks!

@bflashcp3f bflashcp3f changed the title Error when using metadataQuery via REST API Bug when using metadataQuery via REST API Oct 29, 2021
@herongrove
Copy link
Member

Thanks for your submission, @bflashcp3f! We will attempt to reproduce the issue and update you here.

@herongrove herongrove self-assigned this Nov 9, 2021
@myedibleenso
Copy link
Member

@bflashcp3f , what field type is catalysts in your metadata? For contains filters to work, you need to be using a ai.lum.odinson.TokensField (see this example doc in the test suite).

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

No branches or pull requests

3 participants