• Resolved oneruffryder

    (@oneruffryder)


    Hi. Autocomplete shows nicely results per indices (index) name. I’ve added view all results and it leads to search page, carries search entry, but it shows all search results as one. I want ideally to have them split per indice names like autocomplete does it. How i can achieve this? Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I believe you’re going to need to tinker and try out customizing the hits widget in the instantsearch.php file.

    https://www.algolia.com/doc/api-reference/widgets/hits/js/

    We don’t have any readymade answers for this request.

    Thread Starter oneruffryder

    (@oneruffryder)

    Hey. With default algolia no plugin, i’ve managed to do this, by creating 3 different hits, 3 different indexed were hooked and initiated on the bottom with start. All hits are different and part of their own index and search widget.

    I’m unable to replicate similar solution, so just to be sure, are you saying with wp plugin and instantsearch.php at line /* Instantiate instantsearch.js */ i use searchable_posts (instead of with my way creating 3 of these) and then at /* Hits widget */ i somehow output separate 3 indice results. Thing is if this is the case how? any example. I ve looked into link you ve sent but still can’t figure it out. Thank you!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you provide your example code that you mention in your first paragraph?

    The bulk of the plugin is largely around getting your WordPress data indexed and in your Algolia indices. All of that is behind the scenes.

    The templates on the other hand are mostly just some custom files that we load for you, and then the contents of the templates are all widgets and code that come from Algolia InstantSearch and/or Autocomplete, thus why their documentation is still largely applicable here.

    I would like to check out what code you have working, to compare and contrast what comes in the template files and also compare them to what I could find in the Algolia documentation, to see if it’s all something that should be working in the template files.

    Thread Starter oneruffryder

    (@oneruffryder)

    I’ve managed to go around and make it work. Thanks for your time

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Results sorting per indice’ is closed to new replies.