Package fr.enedis.chutney.index.domain
Class AbstractIndexRepository<T>
java.lang.Object
fr.enedis.chutney.index.domain.AbstractIndexRepository<T>
- All Implemented Interfaces:
IndexRepository<T>
- Direct Known Subclasses:
CampaignIndexRepository,DatasetIndexRepository,ScenarioIndexRepository
@Repository
public abstract class AbstractIndexRepository<T>
extends Object
implements IndexRepository<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIndexRepository(String whatValue, LuceneIndexRepository luceneIndexRepository) -
Method Summary
Modifier and TypeMethodDescriptionintcount()protected abstract org.apache.lucene.document.DocumentcreateDocument(T entity) voidprotected abstract StringvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.enedis.chutney.index.domain.IndexRepository
saveAll
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
WHAT
- See Also:
-
ID
- See Also:
-
TITLE
- See Also:
-
CONTENT
- See Also:
-
DESCRIPTION
- See Also:
-
TAGS
- See Also:
-
whatValue
-
-
Constructor Details
-
AbstractIndexRepository
-
-
Method Details
-
createDocument
-
getId
-
save
- Specified by:
savein interfaceIndexRepository<T>
-
delete
- Specified by:
deletein interfaceIndexRepository<T>
-
search
- Specified by:
searchin interfaceIndexRepository<T>
-
count
public int count() -
highlight
-