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

Search by synonyms is case sensitive #13

Open
YoannMR opened this issue Oct 18, 2018 · 1 comment
Open

Search by synonyms is case sensitive #13

YoannMR opened this issue Oct 18, 2018 · 1 comment

Comments

@YoannMR
Copy link

YoannMR commented Oct 18, 2018

Hi,

I've added synonyms for the name "TREPROSTINIL": "Orenitram", "Remodulin" and "TYVASO" and indexed documents with word "Treprostinil" or "treprostinil".

When I do a search in the web UI for "remodulin", it find the document with "treprostinil" but not the one with "Treprostinil".

Is that expected? How can I make it not case-sensitive? I tried adding lower cased entries to "/solr/opensemanticsearch/schema/analysis/synonyms/skos" but it did not work.

This is what I have on this schema (they are duplicated so that symmetric synonym search can work, otherwise the pref_label finds document with aliases but searching for aliases do not find pref_label nor other aliases):
"Orenitram":["Orenitram",
"Remodulin",
"TREPROSTINIL",
"TYVASO"],
"Remodulin":["Orenitram",
"Remodulin",
"TREPROSTINIL",
"TYVASO"],
"TREPROSTINIL":["TREPROSTINIL",
"orenitram",
"remodulin",
"tyvaso"],
"TYVASO":["Orenitram",
"Remodulin",
"TREPROSTINIL",
"TYVASO"],

Thanks!
Yoann

@YoannMR
Copy link
Author

YoannMR commented Oct 23, 2018

Some more details: it seems to be missing the document with "Treprostinil" only when it's the last word in the document.

ie.: searching for "remodulin" finds documents that start with "Treprostinil" or have it mid-sentence but not when it is the last word.

How should I go about debuging this?

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

1 participant