Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Autocomplete with type

Vote:
 

Hi!

Accourding to the documentation for autocomplete (http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Find/8/Searching-With-Javascript/Autocomplete/) you should be able to filter on typ by adding type.

This should look like this:

//_search

I can't get this to work. I don't get an error I just don't get anyt hits. If I remove the it works just fine.

Any suggerstions how to what I'm doing wrong?

/Kristoffer

#109772
Oct 14, 2014 15:51
Vote:
 

So I finally solved it!

I look like you have include the namespace when you are using type and also replace . with _

So in my place it looks like this:

<index_url>/My_Type_With_Namespace.MySpecialType/_search

This will give you an autocomplete with only hits of the type MySpecialType

/Kristoffer

#109773
Oct 14, 2014 16:23
Vote:
 

Should of course be: <index_url>/My_Type_With_Namespace_MySpecialType/_search

#109775
Oct 14, 2014 16:27
* 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.