Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MB 273 posts 936 karma points
    Feb 26, 2017 @ 11:54
    MB
    0

    Examine with autocomplete

    Greetings,

    I'm trying to make autocomplete (jquery ui) to work with this Umbraco Examine example.

    Do you guys know if there's a tutorial, example or documentation online on how to achieve it? I can find products when entering the query manually and refreshing the page.

    But getting it to work with autocomplete seems a bit of a challenge to me.

    I hope you guys can lead me in the correct direction :)

    Cheers!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 26, 2017 @ 12:09
    Dennis Aaen
    1

    Hi Mike,

    I searched on Our to see if I could find some similar posts. I can found this.

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/67642-examine-json-search-autocomplete-not-working

    Also try to see this https://our.umbraco.org/forum/developers/razor/67675-search-term-json-autocomplete

    Perhaps it could help you too I hope so.

    /Dennis

  • MB 273 posts 936 karma points
    Feb 26, 2017 @ 13:52
    MB
    0

    Hey Dennis,

    Thank you for stepping by :)

    I should have mentioned that I tired the first approach but was unsuccessful because I get the following error:

    http://localhost:52242/MacroPartials/Search_JSON?term=spec 404 (Not Found)

    I took everything and changed my autocomplete source to: source: "/MacroPartials/Search_JSON",.

    I have a feeling the source is the issue. I created Search_JSON as a partial view (and macro).

    The only thing I've changed is this line in Search_JSON.cshtml: var searcher = ExamineManager.Instance.SearchProviderCollection["MySearchSearcher"]; Because I took the example from this tutorial

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies