Strange suggestions in autocomplete


We are having strange suggestions in autocomplete. If someone for example have done a search for Alloy' they will get a result because Find will filter away the ' character but later it will return Alloy' as a suggestion for autocomplete.

Does anyone know if it is possible to filter this suggestions so we wont see them?

Feb 09, 2015 14:40

Not sure...

If it's not visible here /EPiServer/Find/#manage/optimization/autocomplete I think you need to to something like:

Clear statistics and change the code and...

  • You could do some regex thing and only chain .Track() if it looks like a nice word.
  • Filter out noise characters from the phrase before querying.

Another option could be to put your own proxy'ing code on top of Find's autocomplete-URL and filter the JSON yourself. I've done this to re-format to what the front-end code needed.


In my experience autocomplete in this manor is not helping the visitor and is open for abuse so I usually recommend some kind of search-as-you-type returning wildcard matches from some specific types or an editorial phrase repository.

Edited, Feb 09, 2015 18:37

I agree with you Johan, it is mutch better to have it working like for example

Thanks for the input, I will check out how I can filter away the noise

Feb 10, 2015 8:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.