Examples of search()


Examples of com.esri.ontology.service.control.OntologyProcessor.search()

    }

    if (ontCtx.isReady()) {
      queryCriteria.setTerm(term);
      OntologyProcessor processor = new OntologyProcessor(ontCtx, locale);
      terms = processor.search(queryCriteria, selection);
    } else {
      Term tm = new Term(term,Term.Relationship.SeeAlso,1);
      terms.add(tm);
    }

Examples of com.flaptor.hounder.cluster.MultiSearcher.search()

        Execution<Void> execution = new Execution<Void>();
        for (int times = 0; times < 50; times++) {
            execution.addTask(new Callable<Void>() {
                public Void call() throws Exception {
                    GroupedSearchResults gsr = multiSearcher.search(new MatchAllQuery(),0,docsPerSearcher*numServers,new StoredFieldGroup("group"),docsPerGroup,null,null);

                    if (docsPerSearcher / docsPerGroup != gsr.groups()) throw new Exception("Not the same count of groups.");

                    for (int i = 0; i < gsr.groups(); i++) {
                        if (docsPerGroup != gsr.getGroup(i).last().size()) {

Examples of com.flaptor.hounder.searcher.ISearcher.search()

        for (int i =0; i < NUM_THREADS; ++i) {
            new Thread() {
                public void run() {
                    synchronized (lock) {queriesInProgress++;}
                    try {
            searcher.search(null, 0, 1, null, 1, null, null);
          } catch (SearcherException e) {
            e.printStackTrace();
            fail();
          }
                    synchronized (lock) {queriesInProgress--;}

Examples of com.flaptor.hounder.searcher.QueriesInProgressSearcher.search()

        for (int i =0; i < NUM_THREADS; ++i) {
            new Thread() {
                public void run() {
                    synchronized (lock) {queriesInProgress++;}
                    try {
            searcher.search(null, 0, 1, null, 1, null, null);
          } catch (SearcherException e) {
            e.printStackTrace();
            fail();
          }
                    synchronized (lock) {queriesInProgress--;}

Examples of com.flaptor.hounder.searcher.TrafficLimitingSearcher.search()

            try {Thread.sleep(10);} catch (InterruptedException e) {}
            new Thread() {
                public void run() {
//                  long t0 = System.currentTimeMillis();
                    try {
                        searcher.search(null, 0, 1, null, 1, null, null);
                    } catch (Throwable t) {
                        t.printStackTrace();
                        assertTrue(t.getMessage().contains("lateDrop"));
                        lateDropQueries++;
                    } finally {

Examples of com.flaptor.indextank.api.IndexEngineApi.search()

        Map<String, String> extras = createExtraParameters(fetch, snippet,
                fetchVariables, fetchCategories);

        try {
            long t0 = System.currentTimeMillis();
            SearchResults results = api.search(q, start, len, function, vars, facetFilters, variableRangeFilters, functionRangeFilters, extras);
            long t1 = System.currentTimeMillis();
            double searchTime = (t1 - t0) / 1000;
            int matches = results.getMatches();
            Map<String, Map<String, Integer>> facets = toFacets(results.getFacets());
            String didYouMean = results.getDidYouMean();

Examples of com.flaptor.indextank.search.DocumentSearcher.search()

    public void testSwitch() throws IOException, ParseException, InterruptedException {
      indexTwelveDocs(this.indexEngine.getIndexer());

        DocumentSearcher searcher = this.indexEngine.getSearcher();

        SearchResults srs = searcher.search(new Query(new TermQuery("text","term1"),null,null),0,10, 0);
    assertEquals("Number of historic results doesn't match", 1, srs.getMatches());
       
        srs = searcher.search(new Query(new TermQuery("text","term11"),null,null),0,10, 0);
    assertEquals("Number of real time results doesn't match", 1, srs.getMatches());

Examples of com.github.jreddit.retrieval.ExtendedSubmissions.search()

      List<Submission> submissionsSubredditExtra = extendedSubms.ofSubreddit("funny", SubmissionSort.TOP, 323, null);
      printSubmissionsList(submissionsSubredditExtra);
 
      // Retrieve the top 532 submissions of query "valentine", user is not given (which is optional)
      System.out.println("\n============== Extended search submissions retrieval ==============");
      List<Submission> submissionsSearchExtra = extendedSubms.search("valentine", SearchSort.RELEVANCE, TimeSpan.ALL, 532);
      printSubmissionsList(submissionsSearchExtra);
     
      // Retrieve the top 233 submissions of a user
      System.out.println("\n============== Extended user submissions retrieval ==============");
      List<Submission> submissionsUserExtra = extendedSubms.ofUser("Unidan", UserSubmissionsCategory.SUBMITTED, UserOverviewSort.HOT, 233);

Examples of com.github.jreddit.retrieval.ExtendedSubreddits.search()

        // subrs.get(user, SubredditType.NEW);
        // subrs.get(user, SubredditType.POPULAR, 33);
        // subrs.get(user, SubredditType.MINE, 16);
        // subrs.get(user, SubredditType.NEW, 22, "t1_29429");
       
        List<Subreddit> searchsubreddits = extSubrs.search("abbot", 10);
        System.out.println("Search subreddits, size received: " + searchsubreddits.size());
       
        // Other possibilities:
        // subrs.search("query");
        // subrs.search("query", 64);

Examples of com.github.jreddit.retrieval.Submissions.search()

      List<Submission> submissionsSubreddit = subms.ofSubreddit("flowers", SubmissionSort.TOP, -1, 100, null, null, true);
      printSubmissionsList(submissionsSubreddit);
     
      // Search for submissions
      System.out.println("\n============== Basic search submissions ==============");
      List<Submission> submissionsSearch = subms.search("flowers", null, null, TimeSpan.MONTH, -1, 100, null, null, true);
      printSubmissionsList(submissionsSearch);
     
      // Retrieve submissions of a user
      System.out.println("\n============== Basic user submissions ==============");
      List<Submission> submissionsUser = subms.ofUser("Unidan", UserSubmissionsCategory.SUBMITTED, UserOverviewSort.TOP, -1, 100, null, null, true);
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.