V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
imn1
V2EX  ›  问与答

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

  •  
  •   imn1 · Oct 28, 2020 · 843 views
    This topic created in 2019 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   ·   1074 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 18:24 · PVG 02:24 · LAX 11:24 · JFK 14:24
    ♥ Do have faith in what you're doing.