imn1
V2EX  ›  问与答

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

  •  
  •   imn1 · Oct 28, 2020 · 894 views
    This topic created in 2058 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   ·   5105 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:12 · PVG 15:12 · LAX 00:12 · JFK 03:12
    ♥ Do have faith in what you're doing.