lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <wellnho...@aevum.de>
Subject Re: [lucy-user] C library:Suggester
Date Tue, 16 May 2017 14:56:26 GMT
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
View raw message