question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accessing the Algolia API full response

See original GitHub issue

Hi,

I am using vue-instantsearch for my ecommerce and have to say it’s very handy and intuitive. However, I can’t find a way to access the full response from the API.

If I check the network the endpoint is returning some properties other than the hits object. However, seems that the implementation like below is only allowing to access the hits object.

<template>
  <ais-index 
    :app-id="algoliaConfig.id" 
    :api-key="algoliaConfig.key" 
    :index-name="algoliaConfig.index" 
    :query-parameters="{hitsPerPage:33}">
  <ais-results>
       loop over results
   </ais-results>
  </ais-index>
</template>

<script>
  // here I need to be able to see the full API response 
  // so that I can access the other properties
  export default {
    data () {}
  }
</script>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
francescobmcommented, Sep 28, 2017

I’ve been able to find it in this.searchStore._helper.lastResults._rawResults[0].facets_stats

1reaction
francescobmcommented, Sep 27, 2017

A property called ‘facets_stats’ which is giving me max and min price of my hits for example

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understand the API response
Understand the API response | Algolia. Learn how Algolia works and how you can use it to create search and discovery experiences. Speed...
Read more >
Search REST API Reference
The Search REST API is the core of Algolia Search. Around it, Algolia built a complete ecosystem, of libraries, tools, and a dashboard....
Read more >
Usage REST API Reference
All API calls transit via HTTPS, via the https://usage.algolia.com domain. You can find the APPLICATION_ID variable in your dashboard, and the ...
Read more >
Monitoring REST API Reference
All the API access is over HTTPS, and accessed via the https://status.algolia.com ... The response format for all requests is a JSON object....
Read more >
REST API Reference
A full reference of API endpoints.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found