• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Pardon me for asking a course related question, but I don't see any lucene forums anywhere

shivajikobardan

New Member
Joined
Jun 23, 2022
Messages
7 (0.14/day)

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



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.
 
Joined
Jul 9, 2016
Messages
856 (0.38/day)
System Name Main System
Processor i9-10940x
Motherboard MSI X299 Xpower Gaming AC
Cooling Noctua NH-D15S + Second Fan
Memory G.Skill 64GB @3600MHz XMP
Video Card(s) EVGA RTX 3080 10GB FTW3 Ultra
Storage 2TB Samsung 970 EVO Plus; 2TB Corsair Force MP600; 2TB Samsung PM981a
Display(s) Dell U4320Q; LG 43MU79-B
Case Corsair A540
Audio Device(s) Creative Lab SoundBlaster ZX-R
Power Supply EVGA G2 1300
Mouse Logitech MK550
Keyboard EVGA Z20 Clicky
Software Windows 10 Pro
Benchmark Scores Cinebench R20 - 6910; FireStrike Ultra - 13241; TimeSpy Extreme - 10067; Port Royal - 13855
most aren't active and not having posts since a long time.
You would still have a better chance of having it answered there than here. This is a gaming review site and 99.9% of the users here are gamers and non-programmers.
 
Joined
Nov 4, 2005
Messages
11,208 (1.83/day)
System Name MoFo 2
Processor AMD PhenomII 1100T @ 4.2Ghz
Motherboard Asus Crosshair IV
Cooling Swiftec 655 pump, Apogee GT,, MCR360mm Rad, 1/2 loop.
Memory 8GB DDR3-2133 @ 1900 8.9.9.24 1T
Video Card(s) HD7970 1250/1750
Storage Agility 3 SSD 6TB RAID 0 on RAID Card
Display(s) 46" 1080P Toshiba LCD
Case Rosewill R6A34-BK modded (thanks to MKmods)
Audio Device(s) ATI HDMI
Power Supply 750W PC Power & Cooling modded (thanks to MKmods)
Software A lot.
Benchmark Scores Its fast. Enough.
I’m not familiar with that code but what I know about programming and that first step is essentially telling you to write the code that will create a index file on the disk/in memory so the program can write the searchable indexed values into it.

The second step there is telling you to create the object of IndexWriter that is responsible for creating said index by the method described in 3 and I would assume literally using the bolded “code” below 3.

If you are struggling with this perhaps a more core class like programming logic and design would be beneficial, learning the flow and logic of how to break down things into simple yes/no/or/and flow is the foundation of good programming.
 
Top