imn1
V2EX  ›  问与答

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

  •  
  •   imn1 · Oct 28, 2020 · 1003 views
    This topic created in 2164 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   ·   Privacy   ·   Solana   ·   797 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:01 · PVG 04:01 · LAX 13:01 · JFK 16:01
    ♥ Do have faith in what you're doing.