Examples of SearchManager


Examples of android.app.SearchManager

  public static void configureSearchView(Activity activity, Menu menu) {
    if (!isAndroid30())
      return;

    try {
      SearchManager sm = (SearchManager) activity.getSystemService(
          Context.SEARCH_SERVICE);
      if (null == sm)
        return;

      Method m = sm.getClass().getMethod("getSearchableInfo",
          android.content.ComponentName.class);
      Object si = m.invoke(sm, activity.getComponentName());

      MenuItem item = menu.findItem(R.id.list_search);
      m = item.getClass().getMethod("getActionView");
View Full Code Here

Examples of com.ecyrd.jspwiki.search.SearchManager

                @SuppressWarnings("unchecked")
                public void backgroundTask() throws Exception
                {
                    Collection<WikiPage> allPages = m_engine.getPageManager().getAllPages();

                    SearchManager mgr = m_engine.getSearchManager();
                    m_max = allPages.size();

                    ProgressItem pi = new ProgressItem() {
                        public int getProgress()
                        {
                            return 100 * m_count / m_max;
                        }
                    };

                    m_engine.getProgressManager().startProgress( pi, PROGRESS_ID );

                    for( WikiPage page : allPages )
                    {
                        mgr.reindexPage(page);
                        m_count++;
                    }

                    m_engine.getProgressManager().stopProgress( PROGRESS_ID );
                    shutdown();
View Full Code Here

Examples of com.google.api.explorer.client.search.SearchManager

    historyManager.delegate = fullView;

    // If this in compiled GWT, set up the search capability. If it is hosted mode, search
    // capability is too slow and will be left disabled.
    if (GWT.isScript()) {
      SearchManager searchManager = new SearchManager(serviceLoader,
          searchIndex,
          new DiscoveryFullTextIndexingStrategy(),
          new DirectoryIndexingStrategy(),
          new HistoryItemIndexingStrategy(),
          ImmutableList.of(fullView, historyManager));
View Full Code Here

Examples of com.jbidwatcher.search.SearchManager

  }

  private Searcher add(String type, String name, String search, String server) {
    int inc=0;
    String curName = name + Integer.toString(inc);
    SearchManager sm = SearchManager.getInstance();
    Searcher s;

    s = sm.buildSearch(System.currentTimeMillis(), type, curName, search, server, null, -1);
    _stm.insert(s);

    return s;
  }
View Full Code Here

Examples of edu.uga.galileo.voci.model.SearchManager

    if (query != null) {
      query = StringUtils.undoSpecialCharReplacements(query)
          .toLowerCase();
    }

    SearchManager manager = new SearchManager();
    List<SearchResult> results = null;
    ArrayList<Integer> includeOnly = processSearchPlugins(request);
    try {
      if ((includeOnly != null) && (includeOnly.size() == 0)) {
        results = new ArrayList<SearchResult>();
      } else {
        results = manager.performBasicQuery(query, searchType,
            (new ProjectManager()).getProjectID(command
                .getProject()), activeOnly, allowsZero, true,
            useBlurbFields, includeOnly, username, updateDateStart,
            updateDateEnd);
      }
View Full Code Here

Examples of frost.fileTransfer.search.SearchManager

        }
    }

    public SearchManager getSearchManager() {
        if (searchManager == null) {
            searchManager = new SearchManager();
        }
        return searchManager;
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.SearchManager

        this.connectionParameter.setBindPassword( bindPassword );

        this.rootDSE = null;

        this.schema = Schema.DEFAULT_SCHEMA;
        this.searchManager = new SearchManager( this );
        this.bookmarkManager = new BookmarkManager( this );

        this.entryToChildrenFilterMap = new HashMap();
        this.dnToEntryCache = new HashMap();
        this.entryToAttributeInfoMap = new HashMap();
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.SearchManager

                ModifyMode.DEFAULT.getOrdinal() );
            connection.getConnectionParameter().setExtendedIntProperty( CONNECTION_PARAMETER_MODIFY_ORDER,
                ModifyOrder.DELETE_FIRST.getOrdinal() );
        }

        this.searchManager = new SearchManager( this );
        this.bookmarkManager = new BookmarkManager( this );

        this.entryToChildrenFilterMap = new HashMap<IEntry, String>();
        this.dnToEntryCache = new HashMap<String, IEntry>();
        this.entryToAttributeInfoMap = new HashMap<IEntry, AttributeInfo>();
View Full Code Here

Examples of org.apache.jackrabbit.core.SearchManager

    }

    public void testIndexMissesNode() throws Exception {

        Session s = getHelper().getSuperuserSession();
        SearchManager searchManager = TestHelper.getSearchManager(s);
        SearchIndex searchIndex = (SearchIndex) searchManager.getQueryHandler();

        Node foo = testRootNode.addNode("foo");
        testRootNode.getSession().save();
        NodeId fooId = new NodeId(foo.getIdentifier());
View Full Code Here

Examples of org.apache.wiki.search.SearchManager

                @SuppressWarnings("unchecked")
                public void backgroundTask() throws Exception
                {
                    Collection<WikiPage> allPages = m_engine.getPageManager().getAllPages();

                    SearchManager mgr = m_engine.getSearchManager();
                    m_max = allPages.size();

                    ProgressItem pi = new ProgressItem() {
                        public int getProgress()
                        {
                            return 100 * m_count / m_max;
                        }
                    };

                    m_engine.getProgressManager().startProgress( pi, PROGRESS_ID );

                    for( WikiPage page : allPages )
                    {
                        mgr.reindexPage(page);
                        m_count++;
                    }

                    m_engine.getProgressManager().stopProgress( PROGRESS_ID );
                    shutdown();
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.