Example usage for com.liferay.portal.kernel.search IndexWriterHelperUtil updateDocument

List of usage examples for com.liferay.portal.kernel.search IndexWriterHelperUtil updateDocument

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.search IndexWriterHelperUtil updateDocument.

Prototype

public static void updateDocument(String searchEngineId, long companyId, Document document,
            boolean commitImmediately) throws SearchException 

Source Link

Usage

From source file:ca.efendi.datafeeds.search.CJProductIndexer.java

License:Apache License

@Override
protected void doReindex(final CJProduct object) throws Exception {
    final Document document = getDocument(object);

    //System.out.println("reindexing document:\n" + document);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), object.getCompanyId(), document,
            isCommitImmediately());/*from ww w .ja  v  a  2 s . c o m*/

}

From source file:com.liferay.asset.categories.internal.search.AssetCategoryIndexer.java

License:Open Source License

@Override
protected void doReindex(AssetCategory assetCategory) throws Exception {
    Document document = getDocument(assetCategory);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), assetCategory.getCompanyId(), document,
            isCommitImmediately());//w ww.j a va 2s .c om
}

From source file:com.liferay.asset.categories.internal.search.AssetVocabularyIndexer.java

License:Open Source License

@Override
protected void doReindex(AssetVocabulary assetVocabulary) throws Exception {
    Document document = getDocument(assetVocabulary);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), assetVocabulary.getCompanyId(), document,
            isCommitImmediately());/*w w  w.  j  av  a2 s. c om*/
}

From source file:com.liferay.asset.tags.internal.search.AssetTagIndexer.java

License:Open Source License

@Override
protected void doReindex(AssetTag assetTag) throws Exception {
    Document document = getDocument(assetTag);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), assetTag.getCompanyId(), document,
            isCommitImmediately());/*from w w w  .j a  v a2s. c  o  m*/
}

From source file:com.liferay.blogs.internal.search.BlogsEntryIndexer.java

License:Open Source License

@Override
protected void doReindex(BlogsEntry blogsEntry) throws Exception {
    Document document = getDocument(blogsEntry);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), blogsEntry.getCompanyId(), document,
            isCommitImmediately());/*www  .ja  v  a2s  .  c o m*/
}

From source file:com.liferay.bookmarks.search.BookmarksEntryIndexer.java

License:Open Source License

@Override
protected void doReindex(BookmarksEntry bookmarksEntry) throws Exception {
    Document document = getDocument(bookmarksEntry);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), bookmarksEntry.getCompanyId(), document,
            isCommitImmediately());//ww  w  . j a  v  a 2s .  com
}

From source file:com.liferay.bookmarks.search.BookmarksFolderIndexer.java

License:Open Source License

@Override
protected void doReindex(BookmarksFolder bookmarksFolder) throws Exception {
    if (!bookmarksFolder.isApproved() && !bookmarksFolder.isInTrash()) {
        return;//from   w  w w. j a  v a 2 s  .  c  o m
    }

    Document document = getDocument(bookmarksFolder);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), bookmarksFolder.getCompanyId(), document,
            isCommitImmediately());
}

From source file:com.liferay.knowledgebase.admin.util.KBArticleIndexer.java

License:Open Source License

@Override
protected void doReindex(KBArticle kbArticle) throws Exception {
    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), kbArticle.getCompanyId(), getDocument(kbArticle),
            isCommitImmediately());/*from   w  w  w  .jav a 2  s.  c o  m*/
}

From source file:com.liferay.mail.util.AccountIndexer.java

License:Open Source License

@Override
protected void doReindex(Account account) throws Exception {
    Document document = getDocument(account);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), account.getCompanyId(), document,
            isCommitImmediately());/*  w w w . java 2s.co m*/
}

From source file:com.liferay.mail.util.FolderIndexer.java

License:Open Source License

@Override
protected void doReindex(Folder folder) throws Exception {
    Document document = getDocument(folder);

    IndexWriterHelperUtil.updateDocument(getSearchEngineId(), folder.getCompanyId(), document,
            isCommitImmediately());//w w w .j a  v a2  s .  c  om
}