In Lucene, what is the difference between ANALYZED and ANALYZED_NO_NORMS?

I could not understand the difference between the two indexing methods: ANALYZED and ANALYZED_NO_NORMS . I read Lucene Javadoc but didn't understand the difference.

Can someone tell me more about NORMS? What are the benefits or limitations that they bring to indexing?

+7
source share
1 answer

analyzed

Index tokens created by running the field value through the analyzer. This is useful for general text. The analyzer can be something like a snow cat stalk analyzer:

ANALYZED_NO_NORMS

It uses an analyzer, but it does not create norms for fields.

Norms are created to quickly count documents at the time of the request. Typically, these norms are loaded into memory, so when you run the query analyzer by index, it can quickly evaluate search results.

No norms mean that the index field and document elevation and normalization of the field length are disabled. The advantage is that memory usage is less, because in each search by index during the search, the norms take one byte of RAM per indexed field for each document in the index.

+12
source

All Articles