D
D
DanielSM2021-07-14 21:41:46
JavaScript
DanielSM, 2021-07-14 21:41:46

How to search for different cases and number of words?

I need to do a search on the so-called "recipes". They have names and ingredients. For example, it says that you need "2 apples", in the search a person can type not apples, but "apple", or "apple pie". At the moment, I have implemented a cyclo search, first the word "apple" is searched, then "apples", "apple", "apple", and so on. Then the elements are rearranged relative to the found matches. The search works quite well, but for example, on request for an apple, it will return recipes with an apple first, but it will also display everything further.

How to do a normal search in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2021-07-14
@Adamos

Use a normal search engine and don't invent ridiculous apple bikes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question