【发布时间】:2023-04-03 23:39:01
【问题描述】:
我想转一个查询字符串的样式:
my $query = q{recipe "with sauce" +eggs -pastrami};
进入一个程序化的SQL::Abstract 查询,用于DBIx::Class。
$where = { -and=>[
'ingredients' =>[ { -like=>'%recipe%' }, { -like=>'%with sauce%' } ],
'ingredients' =>{ -like=>'%eggs%' },
-not => { 'ingredients => { -like => '%pastrami%' } }
]};
上述表示只是近似值。它是用耳朵写的,未经测试,在语法和概念上都不是正确的。
我正在寻找的是有关该主题的一些现有技术,基本的东西。可能是 CPAN 模块,或者可以转换为 CPAN 模块的 C 库。这样的事情有标准吗?
【问题讨论】:
标签: perl search full-text-search standards cpan