Examples of closeIndex()


Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.closeIndex()

        else {
          docIndex = IndexManager.getIndex(sGroupIndex);
        }
        if (null != docIndex) { // should always be true
          docIndex.createAlias(sAliasIndex);
          docIndex.closeIndex();
        }
      }
      else if (!bParentsOnly) { // A sub-index of a parent      
       
        parentCommunityId = getRootCommunity(parentCommunityId);
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.closeIndex()

       
          docIndex.createAlias(sGroupIndex); // for indexing
            // (this is going to be tricky when the functionality is fully implemented
            //  because it will need to handle the parent index splitting)
          docIndex.createAlias(sAliasIndex); // for queries
          docIndex.closeIndex();
          // (do nothing on delete - that will be handled at the parent index level)
        }
      }
      //TESTED (parents, children, and personal + docs_ aliases)
    }
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.closeIndex()

      if (null != parentCommunityId) {
        String sParentGroupIndex = new StringBuffer("doc_").append(parentCommunityId.toString()).toString();
        ElasticSearchManager docIndex = IndexManager.getIndex(sParentGroupIndex);
        docIndex.removeAlias(sGroupIndex);
        docIndex.removeAlias(sAliasIndex);
        docIndex.closeIndex();
      }   
    }
    else {
      ElasticSearchManager docIndex = IndexManager.getIndex(sGroupIndex);
      docIndex.deleteMe();     
View Full Code Here

Examples of lius.index.JCR.JCRIndexer.closeIndex()

                 //IndexEventListener.getInstance()
                
             }
            
             indexer.closeIndex();
            
             dbUtil.commitTransaction();
         } catch (Exception e) {
             e.printStackTrace();
             dbUtil.rollbackTransaction();
View Full Code Here

Examples of lius.index.JCR.JCRIndexer.closeIndex()

            // session.save();

            System.out.println("%%%%%%%%%%%%%%%%%%%%% Indexing done %%%%%%%%%%%%%%%%%%%%%%%");
        } finally {
            if (indexer != null) {
                indexer.closeIndex();
            }
        }
    }
   
    //TODO On pourrait avoir un support avec un Thread qui attend quelques temps avant l'update
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.