Class LuceneIndexRepository

java.lang.Object
fr.enedis.chutney.index.infra.LuceneIndexRepository

public class LuceneIndexRepository extends Object
  • Constructor Details

    • LuceneIndexRepository

      public LuceneIndexRepository(IndexConfig config)
  • Method Details

    • index

      public void index(org.apache.lucene.document.Document document)
    • update

      public void update(org.apache.lucene.search.Query query, org.apache.lucene.document.Document document)
    • search

      public List<org.apache.lucene.document.Document> search(org.apache.lucene.search.Query query, int limit)
    • count

      public int count(org.apache.lucene.search.Query query)
    • delete

      public void delete(org.apache.lucene.search.Query query)
    • deleteAll

      public void deleteAll()
    • highlight

      public String highlight(List<String> keywords, String field, String value, boolean strict)