DmitryKey / luke

This is mavenised Luke: Lucene Toolbox Project
Apache License 2.0
1.54k stars 352 forks source link

The Luke can't show the field of the term count for Long、Date type. #186

Open changquanyou opened 4 years ago

changquanyou commented 4 years ago

I use ElasticSearch-v6.0.0, and the luence version is 7.0.1, of course, the luke can open the index, but it has some issues, maybe it's my fault。here is the description:

changquanyou commented 4 years ago

I‘m very confused, Thank you for answering my questions

DmitryKey commented 4 years ago

hey @changquanyou does Elasticsearch open your index fine? Can you try with a luke version closer to your Lucene index version, for instance: https://github.com/DmitryKey/luke/releases/tag/luke-7.1.0

mocobeta commented 4 years ago

Yes it's expected.

The Luke can't show the field of the term count for Long、Date type.

Long or Date type is not "term" (they are represented by different data structure from terms), so can't count their occurrences as term. Once you understand Lucene internal a little, it would be very clear to you why the error occurs.

Nonetheless, the runtime exception might be confusing for Lucene newbies; we should have better message in the UI.