Solr:更改< mainIndex>中MaxFieldLength的默认值。 [英] Solr: change default value of MaxFieldLength in <mainIndex>

查看:202
本文介绍了Solr:更改< mainIndex>中MaxFieldLength的默认值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有方法可以更改 solarconfig.xml < mainIndex>< maxFieldLength> >文件,以便在创建Solr集合时,所有集合都将使用新值?

Is there a way to change the default <mainIndex><maxFieldLength> value in the solarconfig.xml file, so that when a Solr collection is created ALL collections will use the new value?

默认值10000对大多数应用程序都可以使用,但大多数PDF我正在工作超过100页。客户关注的是搜索结果不返回包含给定关键字的每个PDF。如果我错了,请更正我,但我确定 maxFieldLength 限制索引只是PDF的一小部分。

The default value of 10000 is okay for most applications, but most of the PDFs I am working with are over 100 pages. The client is concerned that the search results do not return EVERY PDF containing the given keywords. Correct me if I'm wrong, but I'm pretty sure that the maxFieldLength is limiting the indexing to just a fraction of the PDFs.

推荐答案

请注意,< maxFieldLength> 令牌,而不是索引的字符。请参阅 - http://lucene.472066.n3.nabble.com/maxFieldLength-td490843 .html 进行讨论。

Please note that <maxFieldLength> is restricting the number of tokens, not characters that are indexed. See - http://lucene.472066.n3.nabble.com/maxFieldLength-td490843.html for a discussion around this.

更新:
我以前不正确,为了更改所有集合的此值,您需要添加一个属性到您的solr.xml文件,如 Solr.xml 。然后可以在每个核心/集合中的solrconfig.xml文件< maxFieldLength> 中引用该属性。

Update: I was incorrect previously, in order to change this value for all collections, you will need to add a property to your solr.xml file as shown in Solr.xml. That property can then be referenced in your solrconfig.xml file <maxFieldLength> setting in each core/collection.

但是,我不知道如何将这将被并入ColdFusion实现,因为我不熟悉CF的工作原理。它可能需要保留手动过程。

However, I am not sure how this would be incorporated into the ColdFusion implementation as I am not familiar with how CF works. It may need to remain a manual process.

这篇关于Solr:更改&lt; mainIndex&gt;中MaxFieldLength的默认值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆