1

我有一个包含文章的表,我想将当前文章与数据库中的所有文章进行匹配,并找出匹配百分比。如何在 Solr 中使用 PHP 执行此操作。我已经索引了 solr 中的数据。我在 schema.xml 中只使用了两个字段

<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 

<field name="body" type="text_general" indexed="true" stored="true"/>

通过传递当前文章的 id 并显示所有匹配的文章,我可以做些什么。

4

0 回答 0