Index index = ElasticLunr.createIndex("fr");Or for creating an English Index with Metaphoning:
Index index = ElasticLunr.createIndex("en", PipelineFactory.METAPHONE_ENABLED);
Pipeline pipeline = new Pipeline(); pipeline.addFunction(new Trimmer()); pipeline.addFunction(new MyStopWordFilter()); pipeline.addFunction(new MyStemmer()); PipelineFactory factory = PipelineFactory.getInstance(); factory.addPipeline("myKey", pipeline); Index index = ElasticLunr.createIndex("myKey");
Index index = ElasticLunr.createIndex();is equivalent to:
Index index = ElasticLunr.createIndex("en");
Copyright 2017 Wei Song. Copyright 2018 Herve Girod. All Rights Reserved. Documentation and source under the MIT licence
Project Web Hosted by
Copyright 1999-2010 -
Geeknet, Inc., All Rights Reserved
About
-
Legal
-
Help