Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于向 SOLR 编写一些查询有一个小问题。我需要通过它的字段(id)在 solr 数据库中找到一个 uniq 文档。我如何使用 SOLR admin 执行此操作?尝试通过 URL 访问,例如: 127.0.0.1:8983/solr/{collection_name}/select?id:{necessary_Id} 但得到了一些令人毛骨悚然的 http 响应。some1 可以帮忙吗?非常感谢。
虽然我不知道什么是“令人毛骨悚然的 http 响应”,但 Solr 查询的正确语法是使用以下q参数:
q
http://localhost:8983/solr/<collectionname>/select?q=id:abc123
我认为您正在尝试在 /select 处理程序上使用隐式 /get 处理程序语法。
在以下帖子中结帐答案。
https://stackoverflow.com/a/52276272/2536745