Examples of LuceneWork


Examples of org.hibernate.search.backend.LuceneWork

    Class<?> entityClass = ClassLoaderHelper.classForName(
        entityClassName,
        LuceneWorkHydrator.class,
        "entity class"
    );
    LuceneWork result = new UpdateLuceneWork(
        id,
        objectIdInString( entityClass, id, conversionContext ),
        entityClass,
        getLuceneDocument(),
        fieldToAnalyzerMap
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

  private static final Log log = LoggerFactory.make();
 
  public void handle(ErrorContext context) {
   
    final List<LuceneWork> failingOperations = context.getFailingOperations();
    final LuceneWork primaryFailure = context.getOperationAtFault();
    final Throwable exceptionThatOccurred = context.getThrowable();
   
    final StringBuilder errorMsg = new StringBuilder();
   
    if ( exceptionThatOccurred != null ) {
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

    Class<?> entityClass = ClassLoaderHelper.classForName(
        entityClassName,
        LuceneWorkHydrator.class,
        "entity class"
    );
    LuceneWork result = new DeleteLuceneWork(
        id,
        objectIdInString( entityClass, id ),
        entityClass
    );
    results.add( result );
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

    Class<?> entityClass = ClassLoaderHelper.classForName(
        entityClassName,
        LuceneWorkHydrator.class,
        "entity class"
    );
    LuceneWork result = new AddLuceneWork(
        id,
        objectIdInString( entityClass, id ),
        entityClass,
        getLuceneDocument(),
        fieldToAnalyzerMap
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

    Class<?> entityClass = ClassLoaderHelper.classForName(
        entityClassName,
        LuceneWorkHydrator.class,
        "entity class"
    );
    LuceneWork result = new UpdateLuceneWork(
        id,
        objectIdInString( entityClass, id ),
        entityClass,
        getLuceneDocument(),
        fieldToAnalyzerMap
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

   private List<LuceneWork> transformKeysToStrings(final List<LuceneWork> luceneWorks) {
      final KeyTransformationHandler keyTransformationHandler = queryInterceptor.getKeyTransformationHandler();
      ArrayList<LuceneWork> transformedWorks = new ArrayList<LuceneWork>(luceneWorks.size());
      for (LuceneWork lw : luceneWorks) {
         LuceneWork transformedLuceneWork = lw
               .getWorkDelegate(LuceneWorkTransformationVisitor.INSTANCE)
               .cloneOverridingIdString(lw, keyTransformationHandler);
         transformedWorks.add(transformedLuceneWork);
      }
      return transformedWorks;
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

  @Override
  public void handle(ErrorContext context) {

    final List<LuceneWork> failingOperations = context.getFailingOperations();
    final LuceneWork primaryFailure = context.getOperationAtFault();
    final Throwable exceptionThatOccurred = context.getThrowable();

    final StringBuilder errorMsg = new StringBuilder();

    if ( exceptionThatOccurred != null ) {
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

    Class<?> entityClass = ClassLoaderHelper.classForName(
        entityClassName,
        "entity class",
        searchFactory.getServiceManager()
    );
    LuceneWork result = new DeleteLuceneWork(
        id,
        objectIdInString( entityClass, id, conversionContext ),
        entityClass
    );
    results.add( result );
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

    Class<?> entityClass = ClassLoaderHelper.classForName(
        entityClassName,
        "entity class",
        searchFactory.getServiceManager()
    );
    LuceneWork result = new AddLuceneWork(
        id,
        objectIdInString( entityClass, id, conversionContext ),
        entityClass,
        getLuceneDocument(),
        fieldToAnalyzerMap
View Full Code Here

Examples of org.hibernate.search.backend.LuceneWork

    Class<?> entityClass = ClassLoaderHelper.classForName(
        entityClassName,
        "entity class",
        searchFactory.getServiceManager()
    );
    LuceneWork result = new UpdateLuceneWork(
        id,
        objectIdInString( entityClass, id, conversionContext ),
        entityClass,
        getLuceneDocument(),
        fieldToAnalyzerMap
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.