问题标签 [solrconfig]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1130 浏览

field - 元素类型 \"field\" 必须后跟属性规范 \">\" 或 \"/>\"。"

我正在尝试使用我的 solr _config 进行收藏。我收到以下错误:

field\" 必须后跟属性规范 \">\" 或 \"/>\"。" }

我检查了 schema.xml 中存在的所有字段。它们都以“/>”关闭。关于如何解决此错误的任何想法?
任何帮助或想法将不胜感激。

0 投票
1 回答
700 浏览

solr - 在哪里为所有请求设置默认 solr 查询参数

我还是新手Solr。我正在尝试找到一个可以放置默认查询参数的地方。

我知道我可以在 、 和 等位置设置默认 <requestHandler name="/select" class="solr.SearchHandler"> 查询 <requestHandler name="/query" class="solr.SearchHandler"> 参数 <requestHandler name="/browse" class="solr.SearchHandler">

但我真正想要的是为所有上述三个(或更多)部分设置默认查询参数。

示例默认参数:

<str name="defType">edismax</str> <str name="qf"> id^2.5 name^2 </str>

我应该将以上几行放在“solrconfig.xml”中的什么位置

0 投票
1 回答
4166 浏览

solr - Solr 6.1 警告:无法将文件添加到类路径

我新配置了 Solr 6.1 服务器(实际上是从版本 4 迁移)并收到很多警告,例如:

或者

但是:下面的任何地方都没有 *.jar 文件C:\dev\solr-6.1.0\server\solr\configsets\foobar(实际上只有一个conf包含一些.xml文件的子目录)并且服务器到目前为止运行良好,所以我想知道这个警告会告诉我什么。我可以忽略它吗?我错过了什么重要的东西吗?

0 投票
2 回答
352 浏览

solr - 如何从运行 solr 备份 solrconfig 文件

我有一个单核 solr 服务器。当 solr 运行时,在一个集合中 solrconfig.xml 和 schema.xml 文件被错误地替换了。现在收集工作正常并正确响应请求,但 conf 文件夹中的有效文件被错误文件替换。如果我重新加载收藏,新的坏文件会加载并且我的收藏无法正常工作。

有没有一种方法可以在不考虑 conf 文件夹中存在的 solrconfig.xml 和 schema.xml 文件的情况下从运行集合中获取 solrconfig.xml 和 schema.xml?

0 投票
1 回答
1022 浏览

solr - Returning single word from Solr Suggester

I am developing a web application, and am using Solr as search engine. I would like to add autocomplete functionality. To do this, I have added the Suggester component, and configured a separate field for it. This works ok.

The problem is that Suggester returns the whole value of the field. For example, if the name of an article is "A newsworthy item" and I search for "new", it will return the whole "A newsworthy item", where I would like it to just return "newsworthy". In other words, return the individual word tokens.

The schema looks like this:

The values are copied into the "term" field. The Solr config:

Can anyone suggest a schema and/or configuration that will make the Suggester return a single word?

0 投票
0 回答
182 浏览

java - 用于连接和搜索数据库的 Apache solr 配置

配置我的 solr 服务器,能够启动和停止服务器,并且可以看到仪表板等。

刚刚创建了一个名为"Wish". 所以在服务器的愿望文件夹中,我添加了数据源详细信息solrconfig.xml

这是它的重要部分

和数据配置 xml 文件内容 id

如果您看一下,我只是想添加一个实体,到目前为止retailer,我的零售商表由 2 行组成。但是当我像下面这样调用 solr API 请求时,没有任何显示:(

这是API请求

但结果总是

我的配置有问题吗?还是我调用它的方式错误?

任何线索和帮助将不胜感激。提前致谢。

0 投票
0 回答
779 浏览

tomcat - Solr6 无法添加核心,显示以下错误

我在 redhat 机器上使用 solr 6.3.0,与 tomcat 服务器集成。我的核心之一没有被添加。核心从 SQL Server 数据库导入数据。solr.log文件打印以下消息。

有人可以帮助找到我,实际上是什么问题?

0 投票
1 回答
80 浏览

search - Apache solr 搜索问题

我遇到了 apachesolr 的搜索问题。

例如我索引的内容是:

  • 提拉米苏 d'hiver
  • Velouté d'hiver
  • Minestrone d'hiver crémeux,
  • 冰沙版蜂巢

当我搜索“hiver”时,我只得到 Smoothie 版本的 hiver 作为结果。

当我搜索 dhiver 时,我得到了结果

  • 提拉米苏 d'hiver
  • Velouté d'hiver
  • Minestrone d'hiver crémeux

无论我搜索 hiver 或 dhiver 还是 dhiver,我都需要获得所有结果

有人知道有什么问题吗?我是否必须更改我的 schema.xml 中的某些内容?

我的文本字段架构是:

0 投票
1 回答
87 浏览

solr - 如何从 solr 云中的 db 摄取数据

我已经使用这篇文章SolrCloud – 2 Nodes Solr, 1 Node ZK Setup 成功设置了 solr cloud 。早些时候我使用了 solr,在 solr 中我创建了一个文件夹名称“TestSolr”,其中我有文件夹和文件,如 conf、data、core.properties 等。在 conf 文件夹中,我创建了一个文件 db-data-config.xml 并放入使用 db 和 query 配置成功在 solr 中注入数据。

还有一个文件名托管模式,我在其中输入字段。

但是现在使用 solr cloud 我已经制作了两个分片 node1 和 node2。现在不知道在哪里进行数据库配置以及在哪里编写查询。我需要在两个分片上做还是只在一个分片上做。我是否需要像在 solr 中一样制作文件 db-data config.xml 和托管模式。对进行数据库配置和执行上述查询一无所知。请帮忙

0 投票
0 回答
204 浏览

solr - 如何在 Solr 中设计 SearchHandler

我在 Solr 中设计了一个 SearchHandler,但我不知道为什么 Rank 和 Shards 不起作用。这是 的配置requestHandler

4 个核心模式是相同的。我错过了什么?