Got it

Lucene confusions of creating and putting index.

Created: Jul 29, 2022 12:39:38Latest reply: Jul 30, 2022 03:08:35 109 2 0 0 0
  HiCoins as reward: 0 (problem unresolved)

These are the steps of indexing in Lucene given in our syllabus-:

1st

2nd




I understand the second step clearly. But I don't understand the first and third step. It's not mentioned clearly in this figure imo. Can you clear my confusion? Plus the sources that I refer don't even mention it like this, they explain it differently. I'm not sure from where this is copied from.

What are we doing in first vs third step as written in that figure text?

Why was indexwriter created first and not used later? Because according to my information that I've collected, you can also use indexwriter to add/remove/update indexes. 


I've a good feeling that all of this information is incorrect but this is what's written in my teacher's notes so I'm not 100% sure of it. And even if it's wrong, they'd expect us to write the same thing in exam, so I've to learn it.



  • x
  • convention:

Featured Answers
olive.zhao
Admin Created Jul 30, 2022 03:08:35

Hello, friend!

In step 1, you need to plan and build indexes first. Indexes can be created in many ways. Indexes are used to facilitate search. When the data volume is large, the number of indexes also determines the performance. Therefore, the first step of creating an index is to build your own index and plan the dimensions for creating the index.

In step 3, the indexwriter object is used to write the document object to the index library. In this process, the index is created and the index and document object are written to the index.

Hope this helps!

View more
  • x
  • convention:

All Answers
stephen.xu
stephen.xu Admin Created Jul 29, 2022 12:40:53

Hello, dear.

Please kindly wait for a while.
View more
  • x
  • convention:

olive.zhao
olive.zhao Admin Created Jul 30, 2022 03:08:35

Hello, friend!

In step 1, you need to plan and build indexes first. Indexes can be created in many ways. Indexes are used to facilitate search. When the data volume is large, the number of indexes also determines the performance. Therefore, the first step of creating an index is to build your own index and plan the dimensions for creating the index.

In step 3, the indexwriter object is used to write the document object to the index library. In this process, the index is created and the index and document object are written to the index.

Hope this helps!

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.