Luke Where are my field values?

I have used Luke four times a year for the past three years. I only break it when I need it. One concept that I never understood is that only certain field values ​​are displayed. I can query these "empty" fields for the expected values ​​and get the expected results, but Luke never displays them. I suppose I'm missing something fundamental and obvious, but it is not so obvious to me.

Example Tab:

enter image description here

Sample Documents Tab:

enter image description here

+4
source share
1 answer

When a program creates a Lucene document, it can tell Lucene whether to save the field value or not. See, for example, the stored argument in the StringField constructor. If the value is not stored, it can be found, but the original bytes of the value are not stored in the index, because they are not required and are not used by the search.

A typical template with, say, http://www.elasticsearch.org/ is to store the original JSON in one field and not store the actually indexed fields. Thus, the application working with the extracted data can use its own data format and it is not necessary to know about Lucene and its flat key document.

+2
source

Source: https://habr.com/ru/post/1500315/


All Articles