Examples of search()


Examples of javax.naming.ldap.InitialLdapContext.search()

         controls.setTimeLimit(searchTimeLimit);
        
         String roleFilter = "(&(" + getObjectClassAttribute() + "={0})(" + getRoleNameAttribute() + "={1}))";
         Object[] filterArgs = { getRoleObjectClasses(), role};
        
         NamingEnumeration answer = ctx.search(getRoleContextDN(), roleFilter, filterArgs, controls);
         while (answer.hasMore())
         {
            SearchResult sr = (SearchResult) answer.next();
            Attributes attrs = sr.getAttributes();
            Attribute user = attrs.get( getRoleNameAttribute() );

Examples of javax.naming.ldap.LdapContext.search()

      try
      {

         if (filterArgs == null)
         {
            results = ldapContext.search(getContainerDN(), filter, controls);
            return Tools.toList(results);
         }
         else
         {
            results = ldapContext.search(getContainerDN(), filter, filterArgs, controls);

Examples of jfix.search.FullTextIndex.search()

        } else {
          index.add(entity, String.valueOf(entity));
        }
      }
      index.commit();
      for (Object obj : index.search(searchTerm)) {
        if (selectionModel.indexOf(obj) == -1) {
          choiceModel.add(obj);
        }
      }
      choiceListbox.selectAll();

Examples of lotus.domino.Database.search()

        //        long ncWalkTime = System.nanoTime();
        //        System.out.println("NOTECOLL: noteid array walked " + nids.length + " entries in " + (ncWalkTime - ncBuildTime) / 1000
        //            + "us");

        long mergeStartTime = System.nanoTime();
        DocumentCollection mergeColl = db.search("@False", db.getLastModified(), 1);
        for (int j = 0; j < nids.length; j++) {
          mergeColl.merge(nids[j]);
        }
        long mergeBuildTime = System.nanoTime();
        System.out.println("MERGECOLL: mergeColl has " + mergeColl.getCount() + " entries in " + (mergeBuildTime - mergeStartTime)

Examples of name.abuchen.portfolio.online.SecuritySearchProvider.search()

                    public void run()
                    {
                        try
                        {
                            SecuritySearchProvider provider = Factory.getSearchProvider().get(0);
                            resultTable.setInput(provider.search(searchBox.getText()));
                        }
                        catch (IOException e)
                        {
                            setErrorMessage(e.getMessage());
                            PortfolioPlugin.log(new Status(Status.ERROR, PortfolioPlugin.PLUGIN_ID, e.getMessage(), e));

Examples of net.rim.device.api.unifiedsearch.UnifiedSearchServices.search()

            searchFields[i] = searchables[i].defineSupportedSearchFields();
        }

        // Get SearchResponse for keyword
        try {
            results = services.search(keyword, searchables, searchFields);
        } catch (final Exception e) {
            UnifiedSearchDemo.errorDialog(e.toString());
        }

        if (results != null) {

Examples of net.sf.katta.lib.lucene.ILuceneClient.search()

    final ILuceneClient client = new LuceneClient(_miniCluster.getZkConfiguration());
    final Query query = new QueryParser(Version.LUCENE_30, "", new KeywordAnalyzer()).parse("foo: bar");
    long start = System.currentTimeMillis();
    for (int i = 0; i < 10000; i++) {
      client.search(query, new String[] { "index2", "index1" });
    }
    System.out.println("search took: " + (System.currentTimeMillis() - start));

    start = System.currentTimeMillis();
    for (int i = 0; i < 10000; i++) {

Examples of net.sf.katta.lib.lucene.LuceneClient.search()

    final ILuceneClient client = new LuceneClient(_miniCluster.getZkConfiguration());
    final Query query = new QueryParser(Version.LUCENE_30, "", new KeywordAnalyzer()).parse("foo: bar");
    long start = System.currentTimeMillis();
    for (int i = 0; i < 10000; i++) {
      client.search(query, new String[] { "index2", "index1" });
    }
    System.out.println("search took: " + (System.currentTimeMillis() - start));

    start = System.currentTimeMillis();
    for (int i = 0; i < 10000; i++) {

Examples of netscape.ldap.LDAPConnection.search()

      Integer.decode(hr.get("limit","1000")));
      } catch (Exception e) {
    System.out.println("Ldap error: " + e);
      }
     
      LDAPSearchResults results = ld.search(base, scope, search, attrs,
        false);
      for (i = 0; results.hasMoreElements(); i++) {
    shove(hr.request.props, name + i + ".", results.next(), attrs);
    sb.append(i).append(' ');
      }

Examples of org.aisearch.uninformed.UninformedSearch.search()

  }

  private List<XMLArtefactOperation> search(INode startNode,
      IGoalTest goalTest, IQueueInserter queueInserter) {
    UninformedSearch search = new UninformedSearch(goalTest, queueInserter);
    Path solution = search.search(startNode);
    if (solution == null)
      return null;

    List<XMLArtefactOperation> operations = new ArrayList<XMLArtefactOperation>();
    while (solution != null) {
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.