Git Product home page Git Product logo

athena's Introduction

#1 Phrase search

Search provides the ability to search by phrase. All results are sorted by default according to the following criteria:

-full phrase match

  • concepts contain all the words from the search phrase
  • result based on two parameters, the number of searched words in the result and importance of each word (importance is calculated for each word, the words that are rearer among all documents are more important)

Example:

Search phrase: Stroke Myocardial Infarction Gastrointestinal Bleeding

Name sort priority explanation
Stroke Myocardial Infarction Gastrointestinal Bleeding full match
Gastrointestinal Bleeding Myocardial Infarction Stroke all words
Stroke Myocardial Infarction Gastrointestinal Bleeding and Renal Dysfunction 3 words
Stroke Myocardial Infarction Bleeding in Back 2 words
Bleeding in Back Gastrointestinal Bleeding 2 word
Stroke Myocardial Infarction 2 word
Stroke Myocardial Infarction Strok 2 words
Stroke Myocardial Infarction Stroke Nothin 2 words
Stroke Myocardial Infarction Renal Dysfunction 2 words
Stroke Myocardial Infarction Renal Dysfunction and Nothing 1 words
stroke 1 words
Stroke 1 words
Strook 1 words

NB: the search goes through all concept fields, but the highest priority is given to CONCEPT_NAME and CONCEPT_CODE

#2 Exact search

Using quotation marks forces an exact-match search.

For an exact search, the following conditions are met

  • the word must be present
  • not case sensitive, the number of spaces between words does not matter
  • stemming is disabled(the word/words must be present exactly as it is in quotation marks)

Example 1:

Search phrase: "Stroke Myocardial Infarction Gastrointestinal Bleeding"

Name
Stroke Myocardial Infarction Gastrointestinal Bleeding
Stroke Myocardial Infarction Gastrointestinal Bleeding and Renal Dysfunction

Example 2:

Search phrase: "Stroke Myocardial Infarction "Gastrointestinal Bleeding"

Name
Stroke Myocardial Infarction Gastrointestinal Bleeding
Gastrointestinal Bleeding Myocardial Infarction Stroke
Stroke Myocardial Infarction Gastrointestinal Bleeding and Renal Dysfunction
Bleeding in Back Gastrointestinal Bleeding

#3 Special symbols

For special symbols, the following conditions are met

  • These special symbols are always ignored and treated as words separation symbols: / \ | ? ! , ; . e.g. "Pooh.eats?honey!" equals "Pooh eats honey"
  • All other special symbols ignored only if it is a separate word: + - ( ) : ^ [ ] { } ~ * ? | & ; e.g. "Pooh ` eats raspberries - honey" equals "Pooh eats honey", but "Pooh'eats raspberries-honey" will remain the same
  • the first funded result will be with characters and then without

Search phrase: [hip]

Name
[hip] fracture risk
[Hip] fracture risk
[hip fracture risk
hip] fracture risk
(hip fracture risk
(hip) fracture risk
hip fracture risk
hip) fracture risk
hip} fracture risk
hip} fracture risk
{hip fracture risk

A special character becomes mandatory if the word is surrounded by quotation marks.

Search phrase: "[hip]"

Name
[hip] fracture risk
[Hip] fracture risk

#4 Approximate matching(fuzzy searching)

In case of a typo, or if there is a similar spelling of the word, the most similar result will be found

Search phrase: Strok Myocardi8 Infarctiin Gastrointestinal Bleedi

Name
Gastrointestinal Bleeding Myocardial Infarction Stroke
Stroke Myocardial Infarction Gastrointestinal Bleeding
Stroke Myocardial Infarction Gastrointestinal Bleeding and Renal Dysfunction
Stroke Myocardial Infarction Strok
Bleeding in Back Gastrointestinal Bleeding
Stroke Myocardial Infarction Bleeding in Back
Stroke Myocardial Infarction
Stroke Myocardial Infarction Stroke Nothin
Stroke Myocardial Infarction Renal Dysfunction
Stroke Myocardial Infarction Renal Dysfunction and Nothing
stroke
Stroke
Stroo

athena's People

Contributors

acumarav avatar aklochkova avatar cgreich avatar glebmalikov avatar marpozh avatar pavgra avatar rsjaffe avatar wivern avatar

Watchers

 avatar

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.