我有一个文档的搜索索引,我想发送一个查询来获取所有这些。 那可能吗?
注意:似乎是“/”或“?” 但只能在我的开发服务器上工作。 部署到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.
更多推荐
发布评论