imn1
V2EX  ›  问与答

sqlite 能不能排序,按匹配越多越靠前?

  •  
  •   imn1 · Oct 28, 2020 · 906 views
    This topic created in 2067 days ago, the information mentioned may be changed or developed.
    若干个条件(字段),用 or 拼接
    搜索结果中匹配越多条件的越靠前,最前面的相当于 and 拼接

    如果不能,搜索后再排序有没有 python 的轮子,带权重更好
    1 replies    2020-10-29 08:19:58 +08:00
    HFcbyqP0iVO5KM05
        1
    HFcbyqP0iVO5KM05  
       Oct 29, 2020 via Android
    你这还是上 elastic search 吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   892 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:54 · PVG 03:54 · LAX 12:54 · JFK 15:54
    ♥ Do have faith in what you're doing.