solr 相关问题

Apache Solr是一个基于Lucene Java搜索库的开源搜索服务器。


aks自定义日志分析

i遵循此过程:

回答 1 投票 0

回答 5 投票 0







统一的荧光笔没有填充“ higlighting”领域,而'unified'

我发现,当我使用新的Solr 9实例查询核心时,我的结果突出显示了一节中没有高亮点。使用原始或FastVector时,我确实会获取数据。为什么是这样?

回答 0 投票 0

如何创建用于在重新启动上启动Solr的Solr服务 我正在尝试创建一个Solr Service脚本,可以在重新启动时自动启动Solr。 这是我看到的脚本: #!/bin/sh #启动,停止和重新启动Apache Solr。 # #CHK ...

#!/bin/sh # Starts, stops, and restarts Apache Solr. # # chkconfig: 35 92 08 # description: Starts and stops Apache Solr SOLR_DIR="/var/www/html/fas/solr/solr-latest" JAVA_OPTIONS="-Xmx1024m -DSTOP.PORT=8983 -DSTOP.KEY=mustard -jar /var/www/html/fas/solr/solr-latest/server/start.jar" LOG_FILE="/var/log/solr.log" JAVA="/bin/java" case $1 in start) echo "Starting Solr" cd $SOLR_DIR $JAVA $JAVA_OPTIONS 2> $LOG_FILE & ;; stop) echo "Stopping Solr" cd $SOLR_DIR $JAVA $JAVA_OPTIONS --stop ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" >&2 exit 1 ;; esac

回答 2 投票 0

solr:ltr(重新排名)与cursorMarks组合

我正在尝试将ltr与solr 7.7上的cursorMarks结合起来,但我得到了这个异常: o.a.s.s.HttpSolrCall null:java.lang.ClassCastException: org.apache.lucene.search.TopDocs 无法转换为 ...

回答 1 投票 0

alfresco cmis浏览器api中的rootFolderUrl和repoUrl没有端口

我正在向 http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser 地址发送请求,但响应中没有端口。 回复: …… “repositoryUrl”:“...

回答 1 投票 0

指定子查询字段时不能使用函数查询

不能在子查询的 fl 中使用存在函数查询,如下所示 subqueryTransformerName.fl=isSavedEntity:exists(query($someQuery))&someQuery=optionId:(1 2 3) 我的完整查询是这样的...

回答 1 投票 0

Solr 7 强制 q 值

我正在使用 Drupal ApacheSolr 多站点模块,由于它的依赖项 Apache Solr 搜索配置当前仅支持 Solr 5.x。我正在使用 Solr 7 并更新了大部分配置。我有

回答 2 投票 0

Solr - 获取嵌套文档

我正在使用 Solr 9.4.1 和 Solarium 6.3.5。 阅读文档后,我认为我正确编码了实现,但我的文档不是在 Solr 中作为父/子关系创建的。 我是不是...

回答 1 投票 0

Solr 嵌套文档

我正在尝试弄清楚如何在 Solr 8 中索引嵌套文档。我找到了一些讨论这样做的示例,但没有一个提供 schema.xml。 模式.xml 我正在尝试弄清楚如何在 Solr 8 中索引嵌套文档。我找到了一些讨论执行此操作的示例,但没有一个提供 schema.xml。 架构.xml <schema name="example-data-driven-schema" version="1.6"> <fields> <field name="_version_" type="long" indexed="true" stored="true" required="true"/> <field name="_root_" type="string" indexed="true" stored="false" docValues="false" /> <field name="id" type="string" indexed="true" stored="true" required="true"/> <field name="title" type="text_general" indexed="true" stored="true"/> <field name="author" type="text_general" indexed="true" stored="true"/> <field name="comment" type="text_general" indexed="true" stored="true"/> <field name="commenter" type="text_general" indexed="true" stored="true"/> <field name="contributor_name" type="text_general" indexed="true" stored="true"/> <field name="contributor_role" type="text_general" indexed="true" stored="true"/> <field name="_nest_path_" type="_nest_path_" /> <field name="_nest_parent_" type="string" indexed="true" stored="true" /> <dynamicField name="*" type="ignored"/> </fields> <uniqueKey>id</uniqueKey> <fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" multiValued="true"/> <fieldType name="_nest_path_" class="solr.NestPathField" /> <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/> <fieldType name="long" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" precisionStep="0"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true"/> <fieldType name="tdates" class="solr.TrieDateField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="6"/> <fieldType name="tdoubles" class="solr.TrieDoubleField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/> <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"/> <fieldType name="tlongs" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/> </schema> 我正在使用此命令添加文档: curl -X POST -k -H 'Content-Type: application/json' -i 'http://localhost:8983/solr/nested_documents_example/update?commit=true' --data '[ { "id": "post101", "title": "How to Optimize Solr Queries", "author": "Mike Johnson", "_nest_parent_": "post101", "_childDocuments_": [ { "id": "comment101", "comment": "This article helped me a lot!", "commenter": "Sophie" }, { "id": "contributor101", "contributor_name": "Karen", "contributor_role": "Reviewer" } ] }, { "id": "post102", "title": "Advanced Solr Schema Design", "author": "Sarah Brown", "_nest_parent_": "post102", "_childDocuments_": [ { "id": "comment102", "comment": "Great schema design tips!", "commenter": "James" } ] } ]' 这是我查询 Solr 时得到的结果(http://localhost:8983/solr/nested_documents_example/select?q=*:*): { "responseHeader": { "zkConnected": true, "status": 0, "QTime": 0, "params": { "q": "*:*", "indent": "true", "q.op": "OR" } }, "response": { "numFound": 5, "start": 0, "numFoundExact": true, "docs": [ { "id": "comment101", "comment": "This article helped me a lot!", "commenter": "Sophie", "_version_": 1820876636938043400 }, { "id": "contributor101", "contributor_name": "Karen", "contributor_role": "Reviewer", "_version_": 1820876636938043400 }, { "id": "post101", "title": "How to Optimize Solr Queries", "author": "Mike Johnson", "_nest_parent_": "post101", "_version_": 1820876636938043400 }, { "id": "comment102", "comment": "Great schema design tips!", "commenter": "James", "_version_": 1820876636939092000 }, { "id": "post102", "title": "Advanced Solr Schema Design", "author": "Sarah Brown", "_nest_parent_": "post102", "_version_": 1820876636939092000 } ] } } 所有内容都位于顶层(扁平化),而不是嵌套结果。 谁能阐明我做错了什么? 这是我想出的,它似乎有效: 架构.xml <schema name="example-data-driven-schema" version="1.6"> <fields> <field name="_version_" type="long" indexed="true" stored="true" required="true"/> <field name="_root_" type="string" indexed="true" /> <field name="id" type="string" indexed="true" stored="true" required="true"/> <field name="title" type="text_general" indexed="true" stored="true"/> <field name="author" type="text_general" indexed="true" stored="true"/> <field name="comment" type="text_general" indexed="true" stored="true"/> <field name="commenter" type="text_general" indexed="true" stored="true"/> <field name="contributor_name" type="text_general" indexed="true" stored="true"/> <field name="contributor_role" type="text_general" indexed="true" stored="true"/> <field name="_nest_path_" type="_nest_path_" /> <field name="_nest_parent_" type="string"/> <dynamicField name="*" type="ignored"/> </fields> <uniqueKey>id</uniqueKey> <fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" multiValued="true"/> <fieldType name="_nest_path_" class="solr.NestPathField" /> <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/> <fieldType name="long" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" precisionStep="0"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true"/> <fieldType name="tdates" class="solr.TrieDateField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="6"/> <fieldType name="tdoubles" class="solr.TrieDoubleField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/> <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"/> <fieldType name="tlongs" class="solr.TrieLongField" positionIncrementGap="0" docValues="true" multiValued="true" precisionStep="8"/> </schema> 插入这些文件: [ { "id": "post101", "title": "How to Optimize Solr Queries", "author": "Mike Johnson", "comments": [ { "id": "comment101", "comment": "This article helped me a lot!", "commenter": "Sophie" }], "contributors": [{ "id": "contributor101", "contributor_name": "Karen", "contributor_role": "Reviewer" } ] }, { "id": "post102", "title": "Advanced Solr Schema Design", "author": "Sarah Brown", "comments": [ { "id": "comment102", "comment": "Great schema design tips!", "commenter": "James" } ] } ] 我所做的选择在返回所有“扁平化”内容方面是正确的 - 问题是我需要将 fl=*,[child] 添加到请求中。 这样做之后,我的结果是: . . . docs": [ { "id": "comment101", "comment": "This article helped me a lot!", "commenter": "Sophie", "_nest_parent_": "post101", "_root_": "post101", "_version_": 1820881500429615000 }, { "id": "contributor101", "contributor_name": "Karen", "contributor_role": "Reviewer", "_nest_parent_": "post101", "_root_": "post101", "_version_": 1820881500429615000 }, { "id": "post101", "title": "How to Optimize Solr Queries", "author": "Mike Johnson", "_version_": 1820881500429615000, "_root_": "post101", "comments": [ { "id": "comment101", "comment": "This article helped me a lot!", "commenter": "Sophie", "_nest_parent_": "post101", "_root_": "post101", "_version_": 1820881500429615000 } ], "contributors": [ { "id": "contributor101", "contributor_name": "Karen", "contributor_role": "Reviewer", "_nest_parent_": "post101", "_root_": "post101", "_version_": 1820881500429615000 } ] }, { "id": "comment102", "comment": "Great schema design tips!", "commenter": "James", "_nest_parent_": "post102", "_root_": "post102", "_version_": 1820881500430663700 }, { "id": "post102", "title": "Advanced Solr Schema Design", "author": "Sarah Brown", "_version_": 1820881500430663700, "_root_": "post102", "comments": [ { "id": "comment102", "comment": "Great schema design tips!", "commenter": "James", "_nest_parent_": "post102", "_root_": "post102", "_version_": 1820881500430663700 } ] } ]

回答 1 投票 0

Apache Atlas:curl:无法连接到本地主机:2181。在窗户上

我有这个问题: 尽管安装了 mvn -T 4C clean -DskipTests package -Pdist,embedded-hbase-solr 但无法连接到zookeeper主机2181。 这就是问题所在: 请帮助我😢😢 帮我 阿特拉斯系列...

回答 1 投票 0

TYPO3 10 和 Solr 扩展 - 搜索部分标题不起作用

我是 Solr 主题的新手。 打字3 10.4.26 Solr-Ext 11.2.0 solr 规范 8.11.1 我有以下问题: 有一个按标题的文件搜索,这里以搜索“forklift”为例。索尔

回答 1 投票 0

WordPress 可以处理单个网站上数以万计的页面/帖子吗?

我是一名初学者,正在尝试学习如何将 WordPress 网站变成数字档案。我需要为该档案中可能有数万个文档创建永久链接。我希望有一些...

回答 1 投票 0

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.