imn1
V2EX  ›  问与答

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

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

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