home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 723143633

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/198#issuecomment-723143633 https://api.github.com/repos/simonw/sqlite-utils/issues/198 723143633 MDEyOklzc3VlQ29tbWVudDcyMzE0MzYzMw== 9599 2020-11-06T15:33:12Z 2020-11-06T15:33:12Z OWNER

Here's the FTS5 query: sql with original as ( select rowid, * from [global-power-plants] ) select original.*, [global-power-plants_fts].rank as rank from [original] join [global-power-plants_fts] on [original].rowid = [global-power-plants_fts].rowid where [global-power-plants_fts] match :query order by rank desc limit 20 The equivalent using rank_bm25() for FTS4 would be: sql with original as ( select rowid, * from [global-power-plants] ) select original.*, rank_bm25(matchinfo([global-power-plants_fts], 'pcnalx')) as rank from [original] join [global-power-plants_fts] on [original].rowid = [global-power-plants_fts].rowid where [global-power-plants_fts] match :query order by rank desc limit 20

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
737476423  
Powered by Datasette · Queries took 4.205ms · About: github-to-sqlite