Thank you very much Nick, I tried your suggestion and it worked. And this
is a much simpler way of getting the LexiconReader. I suppose it does the
lexicon run over all segments in the index, right?

On Tue, May 16, 2017 at 7:56 AM, Nick Wellnhofer <wellnho...@aevum.de>
wrote:

> On 15/05/2017 23:13, Serkan Mulayim wrote:
>
>> I tried to make the library work for Lexicons, but I am receiving a
>> Segfault. I believe I am not able to initialize the LexiconReader
>> correctly.
>>
>
> You can get the LexiconReader for an index with IndexReader's Obtain
> method:
>
>     http://lucy.apache.org/docs/c/Lucy/Index/IndexReader.html#func_Obtain
>
> Example code:
>
>     LexiconReader *lex_reader = (LexiconReader*)IxReader_Obtain(
>         index_reader, Class_Get_Name(LEXICONREADER));
>
> Nick
>

Reply via email to