Can algolia search "pencil" in "theredpencilandgreen"

I’m quite surprise the algolia search result .
Since I’ve try to search for “pencil” in two documents.

First doc>> text :“the pencil”
Second doc>> text:“theredpencilandgreen”

Algolia provide me only first doc, but I prefer both of them.

Can Algolia handle this case? Or Do I need to set some configuration?

Prefix search is central to how Algolia provides as-you-type search. You cannot disable it, but there are some ways to work around for specific use cases (alternative SKUs is a common example).

You can read more about tuning our prefix search here:

And some ways to work around it here: