Index size after enabling infix

There is a use case where, for some searches we do not get any results, so we want to give the closest matching result for that search. In order to do so, we are enabling infix.
1.Is enabling infix the right way to handle this use case?
2.If yes, does it increase the index size?

you might enable infixes at your index with index option min_infix_len described at docs

You have to reindex your data after change that option and it will increase index size.

After that you might change your query by adding stars like *term* and *other* or use per index or per query option expand_keywords that do such transformation for your query
my initial query
got transformed to
( *my* | =my ) ( *initial* | =initial ) ( *query* | =query )

1 Like