我正在开发一个应用程序。我必须索引由各种用户上传的所有pdf,docx,链接。索引工作正常,可以搜索文档,但不支持全文搜索。当我在pdf中搜索一个单词时,它显示没有找到结果。我可以在schema.xml中为Solr全文搜索添加一些东西吗?
我是solr的新手,所以请帮助我..
在schema中,我添加了这些字段,solr对这些字段进行了索引,
<field name="title" type="text_general" indexed="true" stored="true"/>
<field name="description" type="text_general" indexed="true" stored="true"/>
但不执行全文搜索,我使用的是solr-4.7.2
发布于 2015-07-29 07:39:20
谢谢,但是当我在schema中添加以下行时,这个错误就解决了:
<dynamicField name="*" type="ignored" multiValued="true"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="3" maxGramSize="25" />
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
https://stackoverflow.com/questions/31669797
复制