怎么实现不连续字段的模糊搜索功能
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:0.5em;padding:0px;line-height:1.8;word-spacing:0.05rem;color:rgb(52,73,94);font-family:'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;font-size:13px;white-space:normal;background-color:rgb(255,255,255);"><span style="font-size:16px;">文库新版本已支持模糊搜索,但是也只能搜索连续字段的文档标题并高亮,对于不连续字段无法支持搜索。</span></p><p style="box-sizing:border-box;margin-top:0.5em;margin-bottom:0px;padding:0px;line-height:1.8;word-spacing:0.05rem;color:rgb(52,73,94);font-family:'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;font-size:13px;white-space:normal;background-color:rgb(255,255,255);"><br></p>
<p style="box-sizing:border-box;margin-top:0.5em;margin-bottom:0px;padding:0px;line-height:1.8;word-spacing:0.05rem;color:rgb(52,73,94);font-family:'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;font-size:13px;white-space:normal;background-color:rgb(255,255,255);"><span style="font-size:16px;">比如文档标题【<span style="color:#34495E;font-family:'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;word-spacing:0.8px;background-color:#FFFFFF;font-size:16px;">山东省梁山县住宅小区物业服务方案</span>】,搜索“物业服务方案”可以正常显示结果,但是搜索【<span style="color:#34495E;font-family:'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;font-size:16px;word-spacing:0.8px;background-color:#FFFFFF;">梁山县物业服务方案</span>】就不能被搜索出来,如何能实现不连续字段的模糊搜索?</span></p>
<p><br></p><hr>以下是回复内容:<br><div class="ub-html content">
<p>我们推荐的方式是 MySQL 数据库同步一份需要模糊查询的字段到 ElasticSearch,使用 ElasticSearch 的全文搜索功能。</p>
</div><hr><br>采集网址:<br>https://modstart.com/thread/737
页:
[1]