Code Monkey home page Code Monkey logo

Comments (19)

pnrobinson avatar pnrobinson commented on June 17, 2024

@iimpulse we still need to implement this

from hpo-web.

iimpulse avatar iimpulse commented on June 17, 2024

@drseb @pnrobinson This has been added. Please test. It really only works well getting closer to the synonym.

from hpo-web.

drseb avatar drseb commented on June 17, 2024

Hi, this doesn't work for me. I tried searching with the synonyms of https://hpo.jax.org/app/browse/term/HP:0000240 and get no results if I search e.g. for "head size" or "cranium size"

from hpo-web.

drseb avatar drseb commented on June 17, 2024

screen shot 2018-08-23 at 09 12 16

from hpo-web.

drseb avatar drseb commented on June 17, 2024

Entering the exact synonym, leads to wrong results. Am I doing something wrong?

screen shot 2018-08-23 at 09 09 52

from hpo-web.

iimpulse avatar iimpulse commented on June 17, 2024

@drseb Hey so I've done some testing it looks like there is an issue with how many requests we are sending off at a time. Which then lags and causes the result to show what you are seeing. I've put a fix in a PR just waiting on approval.

from hpo-web.

jmcmurry avatar jmcmurry commented on June 17, 2024

This is still not working. https://hpo.jax.org/app/browse/search?q=pins%20and%20needles&navFilter=all

from hpo-web.

iimpulse avatar iimpulse commented on June 17, 2024

@jmcmurry @drseb Sorry. My first pass was not good enough. Messing around with the ORM is time crunching and inefficient. I've moved to raw sql and just need to add some testing and I'll release. Looks like our synonyms are being improperly mapped to terms as well. So I'll have to look at that.

from hpo-web.

jmcmurry avatar jmcmurry commented on June 17, 2024

Thanks for working on it. @kshefchek is there anything you've already built that could help them?

from hpo-web.

kshefchek avatar kshefchek commented on June 17, 2024

Happy to help but it sounds like @iimpulse has it worked out

from hpo-web.

iimpulse avatar iimpulse commented on June 17, 2024

Hi guys, I've deployed. Please help me test this functionality! @jmcmurry @drseb @pnrobinson

from hpo-web.

jmcmurry avatar jmcmurry commented on June 17, 2024

This is a big improvement however is still out of step with prevailing standards. The string that shows up in the autocomplete menu needs to be the one that matches the search string, whether or not the match is the label.

See for instance:

image

should instead be

image

Does this make sense?

from hpo-web.

jmcmurry avatar jmcmurry commented on June 17, 2024

The partial string match highlighting in autocomplete is something we are also struggling with on the Monarch side. cc: @kshefchek

from hpo-web.

kshefchek avatar kshefchek commented on June 17, 2024

I did some digging some time ago and determined with our current tokenizer/filter setup we could not do partial word highlighting. We could adjust things but it didn't seem worth the effort. https://issues.apache.org/jira/browse/SOLR-7926 Also possible this is fixed in solr 7.

from hpo-web.

iimpulse avatar iimpulse commented on June 17, 2024

I might be able to pull this off with a clever join. However there could be alot of underlying hidden gotcha's with this, particularly this one..searching synonym for "pins" truly returns:

TERM *** SYNONYM
Hypogonadotrophic hypogonadism *** Low gonadotropins (secondary hypogonadism)
Increased circulating gonadotropin level *** Elevated serum gonadotropins
Increased circulating gonadotropin level *** Elevated gonadotropins
Paresthesia *** Pins and needles feeling

In this scenario, we actually have two matching synonyms for the same term. Remember this is MYSQL. There could be downstream filters after we return from the database, but those rules would have to be clearly defined.

from hpo-web.

jmcmurry avatar jmcmurry commented on June 17, 2024

If the query string matches more than one synonym, I'm not as fussy about which one to display. I would default to the shorter one though.

from hpo-web.

iimpulse avatar iimpulse commented on June 17, 2024

The current implementation is limited because of https://stackoverflow.com/questions/641407/javascript-negative-lookbehind-equivalent

Once this is supported across all browsers it won't be as limited. I'm testing a bit further to make sure we don't have any large bugs.

from hpo-web.

pnrobinson avatar pnrobinson commented on June 17, 2024

Why not keep things simple and go

if ( (! string.startsWith("ABC") ) && ( string.matches("My awesome regex")) {
  do something cool here
}

from hpo-web.

pnrobinson avatar pnrobinson commented on June 17, 2024

I think this is now working very nicely and will close this issue! Please reopen with any specific items that many remain if necessary!

from hpo-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.