ols4 icon indicating copy to clipboard operation
ols4 copied to clipboard

/api/search?q={q}&queryFields=label,synonym ignores local

Open lgatto opened this issue 1 year ago • 0 comments

Describe the bug

The two following queries produce the same results, even though the local argument is set to true and false

http://www.ebi.ac.uk/ols4/api/search?q=lymphatic&ontology=cl&local=true&rows=20
http://www.ebi.ac.uk/ols4/api/search?q=lymphatic&ontology=cl&local=false&rows=20

Expected behavior

If I understand correctly, local=true should only return terms from the CL ontology, but both return

 [1] "CL:0002554"     "CL:0002138"     "CL:0009109"     "CL:0019017"    
 [5] "CL:2000011"     "CL:0009110"     "CL:0009115"     "CL:2000041"    
 [9] "CL:4033006"     "CL:0009086"     "CL:0009107"     "CL:0009108"    
[13] "UBERON:0001473" "UBERON:0001422" "UBERON:0001425" "UBERON:0001960"
[17] "UBERON:0002042" "UBERON:0010397" "UBERON:0018227" "UBERON:0035198"

lgatto avatar Feb 12 '24 20:02 lgatto