Create index and search for FAQ

App is health control system. In it I have information about medical problems such as Hypertension, Diabetes and so on. The texts are divided by titles.
What I want is to create an index by subject, that is, when clicking on an index it directs me to the text, it’s like a link. Likewise, when the user types a subject (keyword) in the search field, he will be directed.
Is this possible to do? Does anyone have any examples of these here in the Community?

Ex.:
Title: Causes of Hypertension:


smoke
in this case, an attribute of the word tobacco would be created associated with the title causes of hypertension:

image

When the user types in the search field he would be directed to this title.

This is very easy to create. But where are the DB it’s supposed to get the data from?

I don’t have a database. I wanted to do it like in Microsoft Word, that is, when he types the word he looks for the reference in the text.
Ex:
What is the main cause of high blood pressure?

Blood pressure is measured in millimeters of mercury (mmHg) - and is considered high in cases of individuals who have pressure greater than or equal to 14 over 9 most of the time. And what are the main risk factors for high blood pressure?

  • Family history: People with hypertensive parents are at greater risk of developing high blood pressure.
  • Age: from the age of 60, the chances of developing hypertension are greater due to the inflexibility of the arteries that happens during this phase.
  • Ethnicity: Hypertension is more prevalent in black and Asian populations.

Suppose I type the word: Age.
He would take me right to the text

1 Like

But you want to make an app for this, right?
Then, where do you have this information that’s supposed to show after a search? That information needs to be stored in a database.

For instance, where did you get the information about blood pressure from? You mention ‘Word’, but my guess is that you’r not opening a word file to find this information?

Are there a website you want to retrieve this information from? If so you need to keep in mind that lots of information on the internet is not free to copy/paste :stuck_out_tongue_winking_eye:

1 Like

I thought about that possibility myself. There is the question of the author’s copyright. Thanks for the info.

1 Like