Examples of search()


Examples of org.apache.directory.studio.connection.core.io.ConnectionWrapper.search()

                SchemaConstants.NORMALIZERS_AT,
                SchemaConstants.OBJECT_CLASSES_AT,
                SchemaConstants.SYNTAX_CHECKERS_AT
        } );
        String schemaDn = getSubschemaSubentry( wrapper, monitor );
        NamingEnumeration<SearchResult> answer = wrapper.search( schemaDn, "(objectclass=subschema)", constraintSearch, //$NON-NLS-1$
            DEREF_ALIAS_METHOD, HANDLE_REFERALS_METHOD, null, monitor, null );
        if ( answer != null )
        {
            try
            {

Examples of org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.search()

        // Looking for all the defined schemas
        SearchControls constraintSearch = new SearchControls();
        constraintSearch.setSearchScope( SearchControls.ONELEVEL_SCOPE );

        NamingEnumeration<SearchResult> answer = wrapper
            .search( "ou=schema", "(objectclass=metaSchema)", constraintSearch, DEREF_ALIAS_METHOD,
                HANDLE_REFERALS_METHOD, null, ( StudioProgressMonitor ) monitor, null );
        if ( answer != null )
        {
            try

Examples of org.apache.geronimo.farm.discovery.MulticastSearch.search()

        try {
            MulticastSearch multicast = new MulticastSearch(location.getHost(), location.getPort());


            multicast.search(new MulticastSearch.Filter(){
                public boolean accept(URI service) {
                    String s = service.toString();
                    Matcher matcher = regex.matcher(s);
                    if (matcher.matches()){
                        out.println(s);

Examples of org.apache.geronimo.farm.discovery.multicast.MulticastSearch.search()

        try {
            MulticastSearch multicast = new MulticastSearch(location.getHost(), location.getPort());


            multicast.search(new MulticastSearch.Filter(){
                public boolean accept(URI service) {
                    String s = service.toString();
                    Matcher matcher = regex.matcher(s);
                    if (matcher.matches()){
                        out.println(s);

Examples of org.apache.hadoop.chukwa.extraction.engine.datasource.DataSource.search()

    TreeMap<Long, List<Record>> records = new TreeMap<Long, List<Record>>();
    result.setRecords(records);

    for (int i = 0; i < dataSources.length; i++) {
      DataSource ds = dataSourceFactory.getDataSource(dataSources[i]);
      ds.search(result, cluster, dataSources[i], t0, t1, filter, token);
    }
    return result;
  }
}

Examples of org.apache.james.mailbox.MessageManager.search()

            final MessageManager mailbox = getSelectedMailbox(session);

            final SearchQuery query = toQuery(searchKey, session);
            MailboxSession msession = ImapSessionUtils.getMailboxSession(session);
            final Iterator<Long> it = mailbox.search(query, msession);
           
            final Collection<Long> results = new TreeSet<Long>();
            final Collection<Long> uids = new TreeSet<Long>();
           
            while (it.hasNext()) {

Examples of org.apache.jena.larq.IndexLARQ.search()

    {
        IndexLARQ index = modIndex.getIndexLARQ() ;
        for ( String s : super.getPositional() )
        {
            System.out.println("Search : "+s) ;
            Iterator<HitLARQ> hits = index.search(s) ;
            while ( hits.hasNext() )
            {
                HitLARQ h = hits.next() ;
                String str = FmtUtils.stringForNode(h.getNode()) ;
                if ( super.isVerbose() )

Examples of org.apache.lucene.facet.DrillSideways.search()

        }
      };

    // First search, no drill downs:
    DrillDownQuery ddq = new DrillDownQuery(config);
    DrillSidewaysResult dsr = ds.search(null, ddq, 10);

    assertEquals(100, dsr.hits.totalHits);
    assertEquals("dim=dim path=[] value=100 childCount=2\n  b (75)\n  a (25)\n", dsr.facets.getTopChildren(10, "dim").toString());
    assertEquals("dim=field path=[] value=21 childCount=5\n  less than 10 (10)\n  less than or equal to 10 (11)\n  over 90 (9)\n  90 or above (10)\n  over 1000 (0)\n",
                 dsr.facets.getTopChildren(10, "field").toString());

Examples of org.apache.lucene.facet.search.DrillSideways.search()

        }
      };

    // First search, no drill downs:
    DrillDownQuery ddq = new DrillDownQuery(FacetIndexingParams.DEFAULT, new MatchAllDocsQuery());
    DrillSidewaysResult dsr = ds.search(null, ddq, 10, fsp);

    assertEquals(100, dsr.hits.totalHits);
    assertEquals(2, dsr.facetResults.size());
    assertEquals("dim (0)\n  b (75)\n  a (25)\n", FacetTestUtils.toSimpleString(dsr.facetResults.get(0)));
    assertEquals("field (0)\n  less than 10 (10)\n  less than or equal to 10 (11)\n  over 90 (9)\n  90 or above (10)\n  over 1000 (0)\n", FacetTestUtils.toSimpleString(dsr.facetResults.get(1)));

Examples of org.apache.lucene.gdata.search.StandardGdataSearcher.search()

    public void testClose() throws IOException {
        StandardGdataSearcher s = new StandardGdataSearcher(new TestRefcounter(
                new IndexSearcher(this.dir)));
        s.close();
        try {
            s.search(null, 0, 0,this.feedId);
            fail("searcher is closed");
        } catch (IllegalStateException e) {
        }

    }
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.