Examples of search()


Examples of org.jahia.ajax.gwt.helper.SearchHelper.search()

            gwtJahiaSearchQuery.setInFiles(true);
            gwtJahiaSearchQuery.setOriginSiteUuid(null);
            gwtJahiaSearchQuery.setPages(null);
            gwtJahiaSearchQuery.setLanguage(null);
            SearchHelper searchHelper = (SearchHelper) SpringContextSingleton.getInstance().getContext().getBean("SearchHelper");
            List<GWTJahiaNode> result = searchHelper.search(gwtJahiaSearchQuery, 0, 0, session);
            assertEquals("Invalid number of results for query ", 1, result.size());
            String path = result.iterator().next().getPath();
            assertEquals(providerRoot + " : Wrong file found ('" + path + "' instead of '" + testFile.getPath() + "')",
                    testFile.getPath(), path);
        } finally {

Examples of org.jahia.services.search.SearchService.search()

            SearchCriteria criteria = createSearchCriteria();
            StopWatch stopWatch = new StopWatch("search");
            stopWatch.start("Starting 1000 searchs");
            for (int j = 0; j < 1000; j++) {
                List<Hit<?>> hits = searchService.search(criteria, context).getResults();
                int i = 0;
                for (Hit<?> hit : hits) {
                    logger.info("[" + j + "][" + (++i) + "]: " + hit.getLink());
                }
            }

Examples of org.jayasoft.woj.server.services.search.SearchService.search()

     
      SearchService s = WOJServer.getInstance().getSearchService();

      SearchResult r;
      try {
        r = s.search(q, SecurityHelper.getUAK(request), startIndex);
      } catch (ParseException e) {
        throw new IllegalArgumentException("bad query: "+q);
      }
     
            request.setAttribute("processed", Boolean.TRUE);

Examples of org.jboss.dna.graph.Graph.search()

            if (workspaceName != null) {
                graph.useWorkspace(workspaceName);
            }

            return graph.search(searchExpression, maxRowCount, offset);
        }

        /**
         * {@inheritDoc}
         *
 

Examples of org.jboss.forge.shell.util.PathspecParser.search()

   {

      if (path != null)
      {
         PathspecParser pathspecParser = new PathspecParser(resourceFactory, shell.getCurrentResource(), path);
         List<Resource<?>> targets = pathspecParser.search();

         if (targets.isEmpty())
         {
            shell.println("No such resource");
         }

Examples of org.jboss.seam.wiki.core.search.WikiSearch.search()

            boolean foundMatches = false;
            if (areaName != null && areaName.length() > 0) {
                log.debug("searching for unknown area name: " + areaName);
                WikiSearch wikiSearch = (WikiSearch) Component.getInstance(WikiSearch.class);
                wikiSearch.setSimpleQuery(areaName);
                wikiSearch.search();
                foundMatches = wikiSearch.getTotalCount() > 0;
            }
            if (foundMatches) {
                log.debug("found search results");
                return "search";

Examples of org.jdesktop.swingx.search.Searchable.search()

     */
    public void setSearchable(Searchable searchable) {
        if ((this.searchable != null) && this.searchable.equals(searchable)) return;
        Searchable old = this.searchable;
        if (old != null) {
            old.search((Pattern) null);
        }
        this.searchable = searchable;
        getPatternModel().setFoundIndex(-1);
        firePropertyChange("searchable", old, this.searchable);
    }

Examples of org.jitterbit.integration.client.project.jitterpack.JitterPackLocator.search()

            this.latch = new CountDownLatch(1);
        }

        public void start() {
            JitterPackLocator delegate = JitterPackLocatorFactory.newLocator();
            delegate.search(directory, recursive, ImportParameters.DEFAULT, true, this);
        }

        public JitterPack[] getResult() throws InterruptedException {
            latch.await();
            return jitterPacks.toArray(new JitterPack[jitterPacks.size()]);

Examples of org.jivesoftware.openfire.archive.ArchiveSearcher.search()

            ArchiveSearch search = new ArchiveSearch();
            search.setParticipants(participant);
            search.setIncludeTimestamp(time);
            search.setRoom(room);

            Collection<Conversation> conversations = archiveSearcher.search(search);

            DataForm form = new DataForm(DataForm.Type.result);

            FormField field = form.addField();
            field.setType(FormField.Type.hidden);

Examples of org.jmule.core.searchmanager.SearchManager.search()

      }
       
    }
   
    SearchManager manager = _core.getSearchManager();
    manager.search(search_query);
   
    final SearchResultTab tab = new SearchResultTab(search_query_tab_list,search_query,_core);
   
    search_query_tab_list.setSelection(tab.getSearchTab());
   
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.