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.

How to use the different parts of the API?

See original GitHub issue

Is it possible to do stuff like this, @fergiemcdowall :

  • autocomplete on several words (matching on two, three or more words, meaning this needs to be indexed too)
  • number of results
  • only show a subset (i.e. 10 of 273)
  • filter on more than just one word
  • add an arary in an object and be able to filter on one item in that array
  • show what is available to filter on
  • delete everything in the index

I was thinking if I could get some hint on what is possible now and in what direction I need to check, I could do some testing myself. And make it easily available in the [norch-vue](https://github.com/eklem/norch-vue)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fergiemcdowallcommented, Mar 13, 2021

update march 2021:

autocomplete on several words (matching on two, three or more words, meaning this needs to be indexed too)

  • This requires ngrams, which will be fixed in an upcoming release

number of results

  • Total number of results is now shown in resultset

only show a subset (i.e. 10 of 273)

  • You can use the PAGE functionality

filter on more than just one word

  • This is now possible

add an arary in an object and be able to filter on one item in that array

  • This is now possible

show what is available to filter on

delete everything in the index

1reaction
fergiemcdowallcommented, Apr 30, 2019
  1. autocomplete on several words (matching on two, three or more words, meaning this needs to be indexed too)
    

You would need to index your stuff with n-grams I think

  1. number of results
    

Working on this!

  1. only show a subset (i.e. 10 of 273)
    

You can use limit and offset

  1. filter on more than just one word
    

You can use as many words as you want to filter a result. If you tell me your use case I can give you the wuery

  1. add an arary in an object and be able to filter on one item in that array
    

Yes, you can do this

  1. show what is available to filter on
    

No, since you can now filter on anything/everything, there is no way to get up a list of “filterable” fields

  1. delete everything in the index
    

At the moment you have to manually delete the index. A flush command might be nice to have though…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding And Using REST APIs - Smashing Magazine
The Anatomy Of A Request # · The endpoint · The method · The headers · The data (or body).
Read more >
The anatomy of an API call | The Uptrends Blog
The anatomy of an API call · What is an API? · API implementation · Types of APIs · Dissecting a web service...
Read more >
Rest API Calls Made Easy. What are APIs? | by Apurva Khatri
Case I: List Messages · 1. API endpoint · 2. Headers · 3. Method · 4. Data · 5. Params.
Read more >
What is an API: Definition, Types, Specifications, Documentation
Each API contains and is implemented by function calls – language statements that request software to perform particular actions and services.
Read more >
How to Use an API: Just the Basics 2022 | TechnologyAdvice
An API call has three parts: the request the client submits, the retrieval of the requested information, and the delivery of that information ......
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