Elasticsearch只使用索引(分析器)(Elasticsearch use index(analyzer) only)
我正在做一个查询,如果这个查询至少有一个结果,那么结果应该是True / False,不需要额外的数据。
有没有办法查询Elasticsearch,所以它只会使用索引(分析器)并返回结果呢? 所以它不会达到结果的真实数据块?
I'm doing a query that should result with True/False meaning if there's at least one result for this query or not, no extra data is needed.
Is there a way to query Elasticsearch so it will use only the index(analyzer) and return results by it? so it won't reach the real data blocks for the results?
原文:https://stackoverflow.com/questions/39768759
最满意答案
发生此错误是因为
stream2es
实用程序正在尝试使用create
操作索引新文档但不提供ID。 这不再是ES 5中允许的 。您可以降级到ES 2.4.5 ,它会起作用。 (见相关问题 )
The error occurs because the
stream2es
utility is trying to index new documents using thecreate
operation but without giving an ID. This is not allowed in ES 5 anymore.You can downgrade to ES 2.4.5 and it will work. (See related issue)
相关问答
更多-
发生此错误是因为stream2es实用程序正在尝试使用create操作索引新文档但不提供ID。 这不再是ES 5中允许的 。 您可以降级到ES 2.4.5 ,它会起作用。 (见相关问题 ) The error occurs because the stream2es utility is trying to index new documents using the create operation but without giving an ID. This is not allowed in ES 5 ...
-
线程中的Java异常(Java Exception in thread)[2022-04-10]
不知道您使用的是哪个jar文件,可能类似于: https : //mvnrepository.com/artifact/com.microsoft.ews-java-api/ews-java-api/2.0 如果你是,那么它依赖于必须包含的其他罐子。 在上面的链接中列出。 其中之一就是httpclient: https : //mvnrepository.com/artifact/org.apache.httpcomponents/httpclient/4.4.1 。 Eclipse不会自动下载相关的jar ... -
您没有使用命令行参数调用该程序。 使用java BinaryGCD 20 30您可以将上述示例中的20 30替换为任何其他数字 You are not invoking the program with command line arguments. Use java BinaryGCD 20 30 You can replace 20 30 in above example with any other number
-
错误:线程“JavaFX应用程序线程”中的异常[重复](Error: Exception in thread “JavaFX Application Thread” [duplicate])[2022-04-06]
你不能这样做。 您收到ConcurrentModificationException 。 什么是ConcurrentModificationException ? 来自官方Javadoc : 当不允许这样的修改时,检测到对象的并发修改的方法可能抛出此异常。 基本上,您正在迭代列表。 如果您决定删除元素,则可能会导致不可预测的行为。 为避免这种情况,抛出此异常。 我如何解决它? 只需使用Iterator来循环您的ArrayList 。 Iterator使用方法add(T element)和remove(T e ... -
您在同一个流上使用两个Scanner ( System.in )。 第一个是Project03类的main方法中的Project03 。 第二个是SimplePlayList类的readFile方法中的inScanner : public void readFile(Scanner in) { Scanner inScanner = new Scanner(System.in); // <-- remove this line Queue
queue = new ... -
线程主错误java.lang.numberformat.exception中的异常(Exception in thread Main Error java.lang.numberformat.exception)[2023-04-09]
输入不是无法解析的数字。 5 10之间有一个空间。 Input is not a number which cannot be parsed. 5 10 has a space in between. -
来自: http : //docs.confluent.io/3.1.0/streams/faq.html#invalid-timestamp-exception 此错误意味着您的Kafka Streams应用程序的时间戳提取程序无法从记录中提取有效的时间戳。 通常,这指向记录问题(例如记录根本不包含时间戳记),但它也可能指示应用程序使用的时间戳记提取器中存在问题或错误。 何时记录不包含有效的时间戳: 如果您正在使用默认的ConsumerRecordTimestampExtractor,则很可能您的记录不包 ...
-
正如我理解doc中的示例 ,将其设置为true基本上会使异常停止每个线程。 如果这是正确的,在sleep 60语句之后抢救它可能是你能做的最好的: begin # your code here rescue puts "rescued" end As I understand the example in the doc, setting it to true would basically make exceptions stop every thread. If that is correct ...
-
这里的问题是你既没有在run()方法中创建的线程上调用detach()或join() 。 这是C ++线程中的错误。 看我什么时候应该使用std :: thread :: detach? 如果您将代码更改为以下任一项,那么一切正常 #include
#include #include struct Thing { void runComponent() { throw std::runtime_error("o ... -
stream2es:找不到命令(stream2es: command not found)[2023-04-04]
command not found意味着shell无法找到stream2es命令。 你有两个选择: 您的脚本需要调用./stream2es (即调用位于同一文件夹中的stream2es脚本)或 你需要将stream2es移动到$PATH上的文件夹中 command not found means that the shell cannot find the stream2es command. You have two options: Your script either needs to call ./ ...