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.

[Feature] Search quotes

See original GitHub issue

Description

An API method to search quotes. It should allow people to search for quotes by content, author, and possibly tags. Ideally, search results should be sorted by relevance.

API

GET /search/quotes

Query Params

param type Description
query String The string to search for
limit Int The number of authors to return per request. (for pagination)
skip Int The number of items to skip (for pagination)

Use Cases

1. Search for a specific quote or phrase

Ideally, this should work even if the query does not exactly match the quote

GET /search/quotes/?query=a divided house wont stand
GET /search/quotes/?query=divided house

Should both return the following quote

"A house divided against itself will not stand"

2. Search for quotes containing a keyword

GET /search/quotes/?query=love

Should return all quotes containing the word “love”

3. Search for quotes by author name

GET /search/quotes/?query=Lincoln

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
marekdanocommented, Apr 3, 2020

@lukePeavey how do you expect the search should work when there is one search endpoint with the general query param? When we get query, should we search first by content, author, and then tags and display the quotes in this order?

0reactions
lukePeaveycommented, May 24, 2020

@marekdano @mitramejia Let me know what you guys think.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How we're improving search results when you use quotes
Using quotes can definitely be a great tool for power users. We generally recommend first doing any search in natural language without resorting ......
Read more >
Quotation Marks on Search Engines: How to Use Them
Using quotation marks on Google and other search engines wrap multiple words into one phrase to help locate exact results.
Read more >
Google made one of its best search shortcuts even more useful
Google searches with quotes just became much more useful if you're looking for the exact place words appear on a page.
Read more >
Quoted (Phrase, Sentence) Search Support - SearchWP
As of version 3.1, SearchWP supports quoted searches, sometimes called phrase or sentence-based searches. This allows your visitors to add quotes to their ......
Read more >
Lesson 3.4: OR and quotes (Text)
In this lesson you will explore two new operators: double quotes to signify a phrase search, and OR to combine ideas together.
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