1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Random Elastic Search Question

Discussion in 'Enhanced Search Support' started by robdog, Apr 20, 2015.

  1. robdog

    robdog 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!
     
  2. Mike

    Mike 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.
     

Share This Page