匹配搜索索引中的所有文档(Match all documents in a search index)

编程入门 行业动态 更新时间:2024-10-12 22:27:05
匹配搜索索引中的所有文档(Match all documents in a search index)

我有一个文档的搜索索引,我想发送一个查询来获取所有这些。 那可能吗?

注意:似乎是“/”或“?” 但只能在我的开发服务器上工作。 部署到prod时,这些查询不会返回任何结果。

I have a search index of documents and I would like to send a query to get all of them. Is that possible?

Note: It seems that "/" or "?" work but only on my dev server. When deployed to prod these queries do not return any result.

最满意答案

'?' 或dev_server上适合你的'/'不应该发生。 这个链接上的文档说,标点符号包括'?' 或'/'仅作为单词标记符。

为了检索所有结果,我建议使用智能方法来索引文档,也许可以使用另一个字段来使用这种解决方案。 类型date字段,以及 - created_at> epoch_time上的created_at查询或类似于过去的类似内容。

The '?' or '/' that works for you on the dev_server shouldn't have happened. The docs on this link says that the punctuators including the '?' or '/' act as word tokenizers only.

In order to retrieve all the results i would suggest a smart way to index the documents, maybe use another field using which such a solution is possible. A type date field, and a created_at query on a - created_at > epoch_time or something similar from the past.

更多推荐

本文发布于:2023-08-05 05:49:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428146.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:索引   文档   Match   index   search

发布评论

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

>www.elefans.com

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