Line number is a completely unknown concept to Lucene, you have to somehow
figure it out. I've seen at least two ways to make that work:
1> use payloads. A payload is just a bit of data you attach to each token,
what you
put in there is up to you, so you can encode this kind of information
how
Now that I can index my data, I want to be able to search it and report some
sort of position information with every hit, such as a line number or a byte
ofset within the stream. Any idea how I can acoomplish this?
-