Examples of SearchResult


Examples of ag.ion.noa.internal.search.SearchResult

   * @author Andreas Br�ker
   * @date 09.07.2006
   */
  public ISearchResult findFirst(ISearchDescriptor searchDescriptor) {
    if(searchDescriptor == null || searchDescriptor.getSearchContent() == null)
      return new SearchResult(document);
    Object object =  xSearchable.findFirst(toXSearchDescriptor(searchDescriptor));
    if(object == null)
      return new SearchResult(document);
    return new SearchResult(document,(XInterface)object);
  }
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchResult

      handler = constructor.newInstance(arglist);
    } catch (Throwable t) {
      throw new IllegalStateException("Unable to instantiate class " + handlerClass + ": " + t.getMessage(), t);
    }

    SearchResult searchResult;
    SearchQuery q = new SearchQueryImpl(site);
    q.withTypes(MovieResource.TYPE);
    q.sortByPublishingDate(Order.Descending);
    q.withPublisher(harvesterUser);
    try {
      searchResult = contentRepository.find(q);
    } catch (ContentRepositoryException e) {
      logger.error("Error searching for resources with harvester publisher.");
      throw new RuntimeException(e);
    }

    Option<Date> harvestingDate = Option.<Date> none();
    if (searchResult.getHitCount() > 0) {
      MovieResourceSearchResultItemImpl resultItem = (MovieResourceSearchResultItemImpl) searchResult.getItems()[0];
      harvestingDate = some(resultItem.getMovieResource().getPublishFrom());
    }

    try {
      harvest(repositoryUrl, harvestingDate, handler);
View Full Code Here

Examples of clips.delegate.doctor.profchekup.SearchResult

            if (dialogContract.getDlgResult() == ModalDialog.DLG_OK) {//договор выбран
                ContractLocal contractLocal = dialogContract.getContract();//берём его
                DirectoryCollaboratorItem dirCollab = dialogContract.getCollaborator();//коллаба тоже
                //коллаба тоже
                SearchResult result = dialogContract.getResult();
                DialogNewProfCheckup profCheckupDialog
                        = new DialogNewProfCheckup(MainWindow.mainWindow, dirCollab ,contractLocal, getAuditManager());
                profCheckupDialog.setVisible(true);

            }
View Full Code Here

Examples of com.apress.progwt.client.domain.dto.SearchResult

            throws SiteException {
        try {
            log.debug("-----" + searchString + "--------" + user
                    + "-----");

            SearchResult res = new SearchResult();

            if (searchString == null || searchString.equals("")) {
                return res;
            }
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.SearchResult

  final SearchResultJsonParser parser = new SearchResultJsonParser();

  @Test
  public void testParse() throws Exception {
    final SearchResult searchResult = parser.parse(getJsonObjectFromResource("/json/search/issues1.json"));

    assertThat(searchResult, searchResultWithParamsAndIssueCount(0, 50, 1, 1));

    final Issue foundIssue = Iterables.getLast(searchResult.getIssues());
    assertIssueIsTST7(foundIssue);
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.SearchResult

        LOG.info("Indexing current JIRA issues...");

        List<BasicIssue> issues = new ArrayList<BasicIssue>();
        while (true) {
            SearchRestClient searchRestClient = client.getSearchClient();
            SearchResult searchResult = searchRestClient.searchJqlWithFullIssues(jql, maxPerQuery, start, null);

            for (BasicIssue issue : searchResult.getIssues()) {
                issues.add(issue);
            }

            // Note: #getTotal == the total # the query would return *without* pagination, effectively telling us
            // we've reached the end. Also exit early if we're limiting the # of results.
            if (start >= searchResult.getTotal() || (maxResults > 0 && issues.size() >= maxResults)) {
                break;
            }

            start += maxPerQuery;
        }
View Full Code Here

Examples of com.atlassian.labs.speakeasy.model.SearchResult

        Pattern pattern = Pattern.compile(searchQuery);
        List<SearchResult> results = newArrayList();
        for (Plugin plugin : extensionManager.getAllExtensionPlugins())
        {
            Bundle bundle = BundleUtil.findBundleForPlugin(bundleContext, plugin.getKey());
            SearchResult result = new SearchResult();
            result.setName(plugin.getName());
            result.setKey(plugin.getKey());
            if (isMatch(pattern, bundle))
            {
                results.add(result);
            }
        }
View Full Code Here

Examples of com.bugyal.imentor.frontend.shared.SearchResult

    p5 = new ParticipantVO(null, "name5", "m", "name5@k.c","100002992300278", 17.000000, 75.4, "",
        200000, Arrays.asList("science"), Arrays.asList("chemistry",
            "physics"));

    sr1.add(new SearchResult(p1, true, Arrays.asList("maths", "science"), 12));

    sr1.add(new SearchResult(p2, false, Arrays.asList("maths"), 2));
    sr1.add(new SearchResult(p3, false, Arrays.asList("maths", "science"), 8));
    sr1.add(new SearchResult(p4, false, Arrays.asList("maths"), 18));
    sr1.add(new SearchResult(p5, false, Arrays.asList("science"), 28));
  }
View Full Code Here

Examples of com.day.cq.search.result.SearchResult

        QueryBuilder queryBuilder = resourceResolver.adaptTo(QueryBuilder.class);
        Session session = resourceResolver.adaptTo(Session.class);
        Query query = queryBuilder.createQuery(PredicateGroup.create(predicateMap), session);

        SearchResult result = query.getResult();
        Iterator<Resource> resources = result.getResources();
        while (resources.hasNext()) {
            twitterResources.add(resources.next());
        }
        return twitterResources;
    }
View Full Code Here

Examples of com.ecyrd.jspwiki.SearchResult

                if (page != null)
                {
                    String pageName = page.getName();
                    String pageContent = m_engine.getPageManager().getPageText(pageName, WikiPageProvider.LATEST_VERSION) +
                                         attachmentNames(page, " ");
                    SearchResult comparison = matcher.matchPageContent( pageName, pageContent );

                    if( comparison != null )
                    {
                        res.add( comparison );
                    }
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.