Examples of reindexCollection()


Examples of org.exist.storage.DBBroker.reindexCollection()

        DBBroker broker = null;
        try {
            broker = pool.get(pool.getSecurityManager().getSystemSubject());
            assertNotNull(broker);

            broker.reindexCollection(TestConstants.TEST_COLLECTION_URI);

            checkIndex(docs, broker, new QName[] { new QName("head", "") }, "title", 1);
            Occurrences[] o = checkIndex(docs, broker, new QName[]{new QName("p", "")}, "with", 1);
            assertEquals(2, o[0].getOccurrences());
            checkIndex(docs, broker, new QName[] { new QName("hi", "") }, "just", 1);
View Full Code Here

Examples of org.exist.storage.DBBroker.reindexCollection()

          broker = pool.get(pool.getSecurityManager().getSystemSubject());
            TransactionManager transact = pool.getTransactionManager();
            Txn transaction = transact.beginTransaction();

            //Doh ! This reindexes *all* the collections for *every* index
            broker.reindexCollection(XmldbURI.xmldbUriFor("/db"));

            checkIndex(broker, docs, "cha", 1);
            checkIndex(broker, docs, "le8", 1);
           
            XQuery xquery = broker.getXQueryService();
View Full Code Here

Examples of org.exist.storage.DBBroker.reindexCollection()

     */
    private void reindexCollection(XmldbURI collUri) throws EXistException, PermissionDeniedException {
        DBBroker broker = null;
        try {
            broker = factory.getBrokerPool().get(user);
            broker.reindexCollection(collUri);
            LOG.debug("collection " + collUri + " and sub collection reindexed");

        } catch (final Throwable e) {
            handleException(e);

View Full Code Here

Examples of org.exist.storage.DBBroker.reindexCollection()

    public void reindexCollection() throws XMLDBException {
      final Subject preserveSubject = pool.getSubject();
        DBBroker broker = null;
        try {
            broker = pool.get(user);
            broker.reindexCollection(parent.getCollection().getURI());
            broker.sync(Sync.MAJOR_SYNC);
        } catch (final PermissionDeniedException e) {
            throw new XMLDBException(ErrorCodes.PERMISSION_DENIED, e.getMessage(), e);
        } catch (final EXistException e) {
            throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);
View Full Code Here

Examples of org.exist.storage.DBBroker.reindexCollection()

         {collectionPath = parent.getPathURI().resolveCollectionPath(collectionPath);}       
       final Subject preserveSubject = pool.getSubject();
        DBBroker broker = null;
        try {
            broker = pool.get(user);
            broker.reindexCollection(collectionPath);
            broker.sync(Sync.MAJOR_SYNC);
        } catch (final PermissionDeniedException e) {
            throw new XMLDBException(ErrorCodes.PERMISSION_DENIED, e.getMessage(), e);
        } catch (final EXistException e) {
            throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);
View Full Code Here

Examples of org.exist.xmldb.IndexQueryService.reindexCollection()

   
    private void reindex() throws XMLDBException {
        final IndexQueryService service = (IndexQueryService)
        current.getService("IndexQueryService", "1.0");
        message("reindexing collection " + current.getName());
        service.reindexCollection();
        messageln("done.");
    }
   
    private void storeBinary(final String fileName) throws XMLDBException {
        final File file = new File(fileName);
View Full Code Here

Examples of org.exist.xmldb.IndexQueryService.reindexCollection()

                 
                  ArrayList subCollections = getCollections(client.getCollection((String)cmbCollections.getSelectedItem()), new ArrayList());
                 
                            for(int i = 0; i < subCollections.size(); i++)
                            {
                              service.reindexCollection(((ResourceDescriptor)subCollections.get(i)).getName());
                            }
                           
                            //reindex done
                            JOptionPane.showMessageDialog(getContentPane(), "Reindex Complete");
                        }
View Full Code Here

Examples of org.exist.xmldb.IndexQueryService.reindexCollection()

        }

        // Reindex
        try {
            final IndexQueryService iqs = (IndexQueryService) collection.getService("IndexQueryService", "1.0");
            iqs.reindexCollection();
        } catch (final XMLDBException xe) {
            logger.error("Unable to reindex collection", xe);
            return BooleanValue.FALSE;
        }
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.