Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含一些数字(id)的索引列,我需要提取与给定顺序中的一些数字完全匹配的行。
例如
“给我包含 1 后跟 1 后跟 25 后跟 30 的行”
1 1 1 2 2 25 25 26 30 31 => 有效
1 1 1 2 2 25 25 26 31 32 => 无效
1 1 1 2 2 2 2 2 25 30 30 => 有效
我正在尝试,1 >> 1 >> 2 >> 2但它不起作用(我认为因为它将“1”匹配为单个字符而不是“单词”)
1 >> 1 >> 2 >> 2
严格顺序运算符是<<, soo
<<
1 << 1 << 25 << 30
应该管用。
匹配部分单词/单个字符(而不是整个单词)只有在特别启用它的情况下才有效,例如 withmin_infix_len=1并且可能仅在 have 时才匹配enable_keywords=1(除非 sphinx 足够老可以拥有enable_stat=0
min_infix_len=1
enable_keywords=1
enable_stat=0