Thanks Jörg,

read this link
https://lucene.apache.org/core/4_8_1/core/org/apache/lucene/index/SegmentInfos.html
, very informative.

Found a few spots that call the class SegmentInfos, below are them.

https://github.com/elasticsearch/elasticsearch/blob/v1.2.1/src/main/java/org/elasticsearch/index/gateway/local/LocalIndexShardGateway.java
https://github.com/elasticsearch/elasticsearch/blob/v1.2.1/src/main/java/org/elasticsearch/common/lucene/Lucene.java
https://github.com/elasticsearch/elasticsearch/blob/v1.2.1/src/main/java/org/elasticsearch/index/engine/internal/InternalEngine.java
https://github.com/elasticsearch/elasticsearch/blob/v1.2.1/src/main/java/org/elasticsearch/index/merge/policy/ElasticsearchMergePolicy.java
https://github.com/elasticsearch/elasticsearch/blob/v1.2.1/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java

I understand that both segments file are written by Lucene but during
index, do you know which class in elasticsearch that eventually lead to
trigger the underlying writing of segments file?

/Jason


On Fri, Aug 29, 2014 at 8:49 PM, [email protected] <
[email protected]> wrote:

> This is Lucene, when indexing starts. Look at the SegmentsInfo class
> https://lucene.apache.org/core/4_9_0/core/org/apache/lucene/index/SegmentInfos.html
>
> Jörg
>
>
> On Fri, Aug 29, 2014 at 2:38 PM, Jason Wee <[email protected]> wrote:
>
>> Hello people,
>>
>> Anybody know which class/component in elastic search trigger writing
>> of segments.gen and segments_1? I'm currently using elastic search version
>> 1.2.1. It would be great if you can provide link pin point which line in
>> the class does that.
>>
>> Thank you.
>>
>> /Jason
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/bdfc3860-cb26-4f21-9597-4f500eb950e2%40googlegroups.com
>> <https://groups.google.com/d/msgid/elasticsearch/bdfc3860-cb26-4f21-9597-4f500eb950e2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG%3Ddauci86-7Y-RaN%2BJW94kqXU%3DwTA3kgxLO5Mj%3DLL0aQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG%3Ddauci86-7Y-RaN%2BJW94kqXU%3DwTA3kgxLO5Mj%3DLL0aQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAHO4itx9BQfQN2f0JLwwUi4kKupohF1Otxh1_s31t40QeZbcPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to