Solr - 如何匹配文档?

时间:2013-10-28 08:50:56

标签: php solr

我有一个包含文章的表,我想将当前文章与数据库中的所有文章相匹配,并找出匹配百分比。如何在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并显示所有匹配的文章,我能做些什么。

0 个答案:

没有答案
相关问题