Thanks for contacting Algolia.
Algolia was built for user facing search where the starting point is the query (the typed text of the user). In the searchbox itself, Algolia has no way to permit a search exactly like typed: “apple” or “pear”
For the specific example, an option are Synonyms.
Define a synonym for “apple” <=> “pear” so that a search for one word will also search for the synonym. You can manage synonyms in the dashboard or via API.
If you have a more defined example of what you would want to happen, perhaps we can give general guidance. What is your specific use case?