Class NewsSearchConnector

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.search.SearchServiceConnector
org.exoplatform.news.connector.NewsSearchConnector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class NewsSearchConnector extends org.exoplatform.commons.api.search.SearchServiceConnector
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    NewsSearchConnector(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.jcr.RepositoryService repositoryService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    Collection<org.exoplatform.commons.api.search.data.SearchResult>
    search(org.exoplatform.commons.api.search.data.SearchContext context, String query, Collection<String> sites, int offset, int limit, String sort, String order)
     
    List<org.exoplatform.commons.api.search.data.SearchResult>
    search(NewsFilter filter, int offset, int limit, String sort, String order)
     

    Methods inherited from class org.exoplatform.commons.api.search.SearchServiceConnector

    getDisplayName, getSearchType, isEnable, isEnabledForAnonymous, isIndexed, setDisplayName, setEnable, setEnabledForAnonymous, setSearchType

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NewsSearchConnector

      public NewsSearchConnector(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.jcr.RepositoryService repositoryService) throws Exception
      Throws:
      Exception
  • Method Details

    • search

      public Collection<org.exoplatform.commons.api.search.data.SearchResult> search(org.exoplatform.commons.api.search.data.SearchContext context, String query, Collection<String> sites, int offset, int limit, String sort, String order)
      Specified by:
      search in class org.exoplatform.commons.api.search.SearchServiceConnector
    • search

      public List<org.exoplatform.commons.api.search.data.SearchResult> search(NewsFilter filter, int offset, int limit, String sort, String order) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException
    • addFuzzySyntaxAndOR

      protected String addFuzzySyntaxAndOR(String text)