Random Elastic Search Question


Well-known member
I am trying to make a mod for elastic search, but I am having a slight issue. The tool will have predictive searching, but here is my challenge.

If the user types "san", results with San Diego will return.

However, if the user types "san d", no results will be returned.

Finally, if the user types "san di", results with San Diego will return.

I know this has to be some sort of config setting with 1 letter search maybe? Or do I have to change the analyzer? Any help would be greatly appreciated, thanks!


XenForo developer
Staff member
I don't see why "san di" would return "san diego" unless there's some unexpected happening with stemming (which is possible; it's algorithmic).

Normally search won't find partial words (stemming notwithstanding). You can use "*" to override this.