[siren-user] Error in NTriplesIndexing demo

Renaud Delbru renaud.delbru at deri.org
Sat Oct 8 17:54:12 IST 2011


Hi,

On 08/10/11 14:55, rajashree deka wrote:
> Hi,
>
> When I am running the NTriplesIndexing demo, I get an error for the
> NTriplesIndexing method. Below is the code. Is it because
> MaxFieldLength is deprecated? What do I use instead then?
> http://lucene.apache.org/java/3_1_0/api/core/org/apache/lucene/index/IndexWriter.html
> tells me to use LimitTokenCountAnalyzer instead. But how to use this?

What version of SIREn are you using ?
In the latest versions of SIREn (e.g., [1]), there isn't the 
MaxFieldLength parameter.

[1] 
https://github.com/rdelbru/SIREn/blob/212b8c21f8226c53089521f4bd813e544149eb05/siren-core/src/test/java/org/sindice/siren/demo/ntriples/NTriplesIndexing.java

If you want to limit the number of tokens you want to index, then I 
would follow the advice of Lucene by using the LimitTokenCountAnalyzer.

Kind Regards,
-- 
Renaud Delbru


More information about the siren mailing list