lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serkan Mulayim <serkanmula...@gmail.com>
Subject Re: [lucy-user] C library:Suggester
Date Tue, 16 May 2017 17:53:30 GMT
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 <wellnhofer@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message