EBISPOT / OLS

Ontology Lookup Service from SPOT at EBI
http://www.ebi.ac.uk/ols
Apache License 2.0
98 stars 41 forks source link

Search does not search the term identifier #103

Open matthiaskoenig opened 8 years ago

matthiaskoenig commented 8 years ago

When searching via a search string in an ontology also the id should be searched. For instance if I search for "20" in SBO

http://www.ebi.ac.uk/ols/search?q=20&groupField=iri&start=0&ontology=sbo

I do not get the SBO:0000020 as a result.

http://www.ebi.ac.uk/ols/search?q=20&groupField=iri&start=0&ontology=sbo
simonjupp commented 8 years ago

I hadn't actually thought about people wanting to search for ids like that. I can see how it could be convenient, but we probably wouldn't want to do this kind of suffix searching on all fields. We do tokenise queries on the : so if you search for 0000020 you will get 'inhibitor' as a top hit.

When we build the index we can index the id with and without the leading zeros which should resolve this.

matthiaskoenig commented 8 years ago

Yes the indexing with and without leading zeros would be perfect.

On Wed, Jul 27, 2016 at 11:54 AM, simonjupp notifications@github.com wrote:

I hadn't actually thought about people wanting to search for ids like that. I can see how it could be convenient, but we probably wouldn't want to do this kind of suffix searching on all fields. We do tokenise queries on the : so if you search for 0000020 you will get 'inhibitor' as a top hit.

When we build the index we can index the id with and without the leading zeros which should resolve this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EBISPOT/OLS/issues/103#issuecomment-235540693, or mute the thread https://github.com/notifications/unsubscribe-auth/AA29uo55lpxjJXb4uocgLRx2lfgw5I9lks5qZyrDgaJpZM4JT79o .

Matthias König Junior Group Leader LiSym - Systems Medicine of the Liver Humboldt-University Berlin, Institute for Theoretical Biology https://www.livermetabolism.com konigmatt@googlemail.com Tel: +49 30 20938450 Tel: +49 176 81168480