Solr:更改< mainIndex>中MaxFieldLength的默认值。

编程入门 行业动态 更新时间:2024-10-25 12:29:39
本文介绍了Solr:更改< mainIndex>中MaxFieldLength的默认值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有方法可以更改 solarconfig.xml 文件,以便在创建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> 令牌,而不是索引的字符。请参阅 - lucene.472066.n3.nabble/maxFieldLength-td490843 .html 进行讨论。

Please note that <maxFieldLength> is restricting the number of tokens, not characters that are indexed. See - lucene.472066.n3.nabble/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的默认值。

本文发布于:2023-11-17 03:19:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608630.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:默认值   lt   amp   Solr   MaxFieldLength

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!