Examples of search()


Examples of org.exoplatform.webui.organization.account.UIUserSelector.search()

            // TODO tamnd PORTAL-3010 searching a user in the add member form does not work.
            String filter = userSelector.getUIFormSelectBox(UIUserSelector.FIELD_FILTER).getValue();
            String groupId = userSelector.getSelectedGroup();

            userSelector.search(userName, filter, groupId);
            // modified by Pham Dinh Tan
            // UIListUsers form = (UIListUsers) searchUserPopup.getUIComponent();
            // String name = uiGroupForm.getUIStringInput("username").getValue();
            // UISearchForm uiSearchForm = form.getUISearchForm();
            // uiSearchForm.getUIStringInput("searchTerm").setValue(name);

Examples of org.fao.geonet.kernel.search.KeywordsSearcher.search()

          .getHandlerContext(Geonet.CONTEXT_NAME);
      ThesaurusManager thesaurusMan = gc.getBean(ThesaurusManager.class);

            if(Log.isDebugEnabled("KeywordsManager")) Log.debug("KeywordsManager","Creating new keywords searcher");
      searcher = new KeywordsSearcher(context, thesaurusMan);
      searcher.search(context.getLanguage(), params);
      searcher.sortResults(KeywordSort.defaultLabelSorter(SortDirection.DESC));
      session
          .setProperty(Geonet.Session.SEARCH_KEYWORDS_RESULT,
              searcher);
    } else {

Examples of org.fao.geonet.kernel.search.MetaSearcher.search()

    ServiceConfig config = new ServiceConfig();

    SearchManager searchMan = gc.getBean(SearchManager.class);
    MetaSearcher  searcher  = searchMan.newSearcher(SearchManager.LUCENE, Geonet.File.SEARCH_LUCENE);

    searcher.search(context, params, config);

    params.addContent(new Element("from").setText("1"));
    params.addContent(new Element("to").setText(searcher.getSize() +""));

    Element result = searcher.present(context, params, config);

Examples of org.fenixedu.academic.dto.person.SimpleSearchPersonWithStudentBean.search()

            HttpServletResponse response) throws FenixServiceException {
        final SimpleSearchPersonWithStudentBean searchPersonBean =
                (SimpleSearchPersonWithStudentBean) getObjectFromViewState("searchPersonBean");
        request.setAttribute("searchPersonBean", searchPersonBean);

        final Collection<Person> persons = searchPersonBean.search();
        if (persons.size() == 1) {
            request.setAttribute("personId", persons.iterator().next().getExternalId());

            return showOperations(mapping, form, request, response);

Examples of org.fenixedu.academic.dto.student.StudentsSearchBean.search()

        if (studentsSearchBean == null) { // 1st time
            studentsSearchBean = new StudentsSearchBean();
        } else {

            final Set<Student> students = studentsSearchBean.search();

            if (students.size() == 1) {
                Student student = students.iterator().next();
                request.setAttribute("student", student);
                request.setAttribute("choosePhdOrRegistration", new ChooseRegistrationOrPhd(student));

Examples of org.geotools.data.shapefile.index.quadtree.QuadTree.search()

            }
        } else {
            try {
                QuadTree quadTree = openQuadTree();
                if ((quadTree != null) && !bbox.contains(quadTree.getRoot().getBounds())) {
                    tmp = quadTree.search(bbox);
                }
                if (tmp == null && quadTree != null) {
                    quadTree.close();
                }
            } catch (Exception e) {

Examples of org.goobi.production.plugin.interfaces.IOpacPlugin.search()

      String tok = tokenizer.nextToken();
      try {
                ConfigOpacCatalogue coc = new ConfigOpac().getCatalogueByName(opacKatalog);
                IOpacPlugin iopac = (IOpacPlugin) PluginLoader.getPluginByTitle(PluginType.Opac, coc.getOpacType());

                Fileformat addrdf = iopac.search(this.opacSuchfeld, tok, coc, this.myPrefs);
        if (addrdf != null) {
          this.myDocStruct.addChild(addrdf.getDigitalDocument().getLogicalDocStruct());
          MetadatenalsTree3Einlesen1();
        } else {
          Helper.setMeldung(null, "Opac abgefragt: ", "kein Ergebnis");

Examples of org.graylog2.restclient.models.UniversalSearch.search()

                savedSearch = savedSearchService.get(savedSearchId);
            } else {
                savedSearch = null;
            }

            searchResult = search.search();
            if (searchResult.getError() != null) {
                return ok(views.html.search.queryerror.render(currentUser(), q, searchResult, savedSearch, fields, stream));
            }
            searchResult.setAllFields(getAllFields());

Examples of org.hbasene.index.search.HBaseIndexSearcher.search()

public class TestHBaseIndexReader extends AbstractHBaseneTest {

  @Test
  public void testSearch() throws IOException {
    IndexSearcher searcher = new HBaseIndexSearcher(this.indexReader);
    TopDocs docs = searcher.search(new TermQuery(new Term("content", "plays")),
        3);
    Assert.assertTrue(docs.totalHits > 3 );
        //"At least 3 terms with the keyword plays available");
    for (ScoreDoc scoreDoc : docs.scoreDocs) {
      Assert.assertTrue(scoreDoc.doc >= 0);// "Doc Id  " + scoreDoc.doc

Examples of org.hyperdex.client.Client.search()

        Boolean bool26 = (Boolean)obj26;
        assert(bool26 == true);
        Map<String, Object> checks27 = new HashMap<String, Object>();
        checks27.put("k", new Regex("^foo"));
        Set<Object> X27 = new HashSet<Object>();
        Iterator it27 = c.search("kv", checks27);
        while (it27.hasNext())
        {
            X27.add(it27.next());
        }
        Map<String, Object> checks28 = new HashMap<String, Object>();
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.