Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Solr中,“a”的最大尺寸是多少;“文本”;领域_Solr - Fatal编程技术网

在Solr中,“a”的最大尺寸是多少;“文本”;领域

在Solr中,“a”的最大尺寸是多少;“文本”;领域,solr,Solr,在应用程序中使用Solr client时,多行字段的最大大小是多少 我可以将巨大的xml文档作为文本发送吗 例如 更新 我使用了相同的单元测试,使用textfieldType。下面是我使用的声明。请注意,我已经从声明中删除了analyzer部分 <fieldType name="text" class="solr.TextField"/> @测试 public void test()引发IOException,SolrServerException{ SolrInputDocum

在应用程序中使用Solr client时,多行字段的最大大小是多少

我可以将巨大的xml文档作为文本发送吗

例如


更新

我使用了相同的单元测试,使用
text
fieldType。下面是我使用的声明。请注意,我已经从声明中删除了analyzer部分

<fieldType name="text" class="solr.TextField"/>

@测试
public void test()引发IOException,SolrServerException{
SolrInputDocument=新的SolrInputDocument();
document.addField(“profileId”,TestConstants.PROFILE\u ID);
StringBuilder=新的StringBuilder();

对于(inti=0;i将solr字段更改为“text\u general”并更新solr模式有帮助

用于更新solr架构的命令:

solrctl instancedir--更新“包含带有已编辑solr字段的架构文件的目录”


solrctl集合--更新“要更新的集合名称”

是什么促使您需要将大量XML文档发送到Solr?这些文档是否会被索引以供搜索,或者只是存储并返回结果?答案中有更新,我之前发布过。请检查。您使用的是哪个版本?Solr 3和Solr 4之间对此进行了更改。4最新版本是在提交此票据时Solr网站发布的创建了…但
字符串
字段与
文本
字段不同。如果您发现了某个标记的限制,您是对的。@MatsLindh您是对的。我已经添加了我对
文本
的发现,请检查。感谢您的反馈。非常感谢您的回答。正如广告中所说的,我运行得很好txt动态solr字段中的大文本文件。这几乎正好是32KiB,减去字节表示UTF-16的BOM
<fieldType name="text" class="solr.TextField"/>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
@Test
public void test() throws IOException, SolrServerException {
  SolrInputDocument document = new SolrInputDocument();
  document.addField("profileId", TestConstants.PROFILE_ID);
  StringBuilder builder = new StringBuilder();
  for (int i = 0; i<32767; i++) {
    builder.append((char)((i%26)+'a'));
  }
  document.addField("email", builder.toString());
  solrClient.add(document);
  solrClient.commit();
}