Examples of types()


Examples of org.elasticsearch.action.search.SearchRequest.types()

    // Build the search Request
    String[] indices = RestActions.splitIndices(index);
    SearchRequest searchRequest = new SearchRequest(indices);
    searchRequest.extraSource(searchSourceBuilder);
    searchRequest.types(RestActions.splitTypes(type));

    return searchRequest;
  }

  /**
 
View Full Code Here

Examples of org.elasticsearch.action.search.SearchRequest.types()

        if (scroll != null) {
            searchRequest.scroll(new Scroll(parseTimeValue(scroll, null)));
        }

        searchRequest.timeout(request.paramAsTime("timeout", null));
        searchRequest.types(RestActions.splitTypes(request.param("type")));
        searchRequest.queryHint(request.param("query_hint"));
        searchRequest.routing(request.param("routing"));
        searchRequest.preference(request.param("preference"));

        return searchRequest;
View Full Code Here

Examples of org.elasticsearch.search.internal.InternalSearchRequest.types()

        internalRequest.source(request.source(), request.sourceOffset(), request.sourceLength());
        internalRequest.extraSource(request.extraSource(), request.extraSourceOffset(), request.extraSourceLength());
        internalRequest.scroll(request.scroll());
        internalRequest.timeout(request.timeout());
        internalRequest.filteringAliases(filteringAliases);
        internalRequest.types(request.types());
        return internalRequest;
    }

    public static InternalScrollSearchRequest internalScrollSearchRequest(long id, SearchScrollRequest request) {
        InternalScrollSearchRequest internalRequest = new InternalScrollSearchRequest(id);
View Full Code Here

Examples of org.elasticsearch.search.internal.SearchContext.types()

        }

        if (types == null || types.isEmpty()) {
            SearchContext searchContext = SearchContext.current();
            if (searchContext.hasTypes()) {
                types = Arrays.asList(searchContext.types());
            } else {
                types = parseContext.mapperService().types();
            }
        } else if (types.size() == 1 && Iterables.getFirst(types, null).equals("_all")) {
            types = parseContext.mapperService().types();
View Full Code Here

Examples of org.elasticsearch.search.internal.SearchContext.types()

        }

        if (types == null || types.isEmpty()) {
            SearchContext searchContext = SearchContext.current();
            if (searchContext.hasTypes()) {
                types = Arrays.asList(searchContext.types());
            } else {
                types = parseContext.mapperService().types();
            }
        } else if (types.size() == 1 && Iterables.getFirst(types, null).equals("_all")) {
            types = parseContext.mapperService().types();
View Full Code Here

Examples of org.elasticsearch.search.internal.ShardSearchRequest.types()

        DirectoryReader directoryReader = DirectoryReader.open(writer, true);
        readerContext = directoryReader.leaves().get(0);
        fieldData.load(readerContext);

        ShardSearchRequest request = new ShardSearchRequest();
        request.types(new String[]{Constants.DEFAULT_MAPPING_TYPE});

        SearchContext searchContext = mock(SearchContext.class);
        when(searchContext.mapperService()).thenReturn(mapperService);
        when(searchContext.fieldData()).thenReturn(ifd);
        ctx = new CollectorContext().searchContext(searchContext);
View Full Code Here

Examples of org.fcrepo.server.search.ObjectFields.types()

                    } else if (l.equalsIgnoreCase("contributor")) {
                        html.append(join(f.contributors()));
                    } else if (l.equalsIgnoreCase("date")) {
                        html.append(join(f.dates()));
                    } else if (l.equalsIgnoreCase("type")) {
                        html.append(join(f.types()));
                    } else if (l.equalsIgnoreCase("format")) {
                        html.append(join(f.formats()));
                    } else if (l.equalsIgnoreCase("identifier")) {
                        html.append(join(f.identifiers()));
                    } else if (l.equalsIgnoreCase("source")) {
View Full Code Here

Examples of org.fcrepo.server.utilities.DCFields.types()

                        st.setString(1, pid);
                        st.setLong(2, dt.getTime());
                        st.executeUpdate();
                    }
                }
                dbRowValues[14] = getDbValue(dc.types());
                dbRowValues[15] = getDbValue(dc.formats());
                dbRowValues[16] = getDbValue(dc.identifiers());
                dbRowValues[17] = getDbValue(dc.sources());
                dbRowValues[18] = getDbValue(dc.languages());
                dbRowValues[19] = getDbValue(dc.relations());
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementDeployment.types()

      if(mdAnnotation != null)
      {
         String mdaSimpleName = mdAnnotation.simpleName();
         if(mdaSimpleName.length() > 0 && ManagementConstants.GENERATED.equals(mdaSimpleName) == false)
            simpleName = mdAnnotation.simpleName();
         types = mdAnnotation.types();
      }
     
      ManagedDeployment md = new ManagedDeploymentImpl(unit.getName(), simpleName, parent, validUnitMOs);
      if(types.length > 0)
      {
View Full Code Here

Examples of org.objectstyle.wolips.core.resources.types.TypeNameCollector.types()

    }
    else if ("Direct Actions".equals(defaultsName)) {
      if (partialValue != null && partialValue.startsWith("\"")) {
        TypeNameCollector typeNameCollector = new TypeNameCollector("com.webobjects.appserver.WODirectAction", javaProject, false);
        BindingReflectionUtils.findMatchingElementClassNames("", SearchPattern.R_PREFIX_MATCH, typeNameCollector, new NullProgressMonitor());
        for (IType type : typeNameCollector.types()) {
          IMethod[] methods = type.getMethods();
          for (IMethod method : methods) {
            String name = method.getElementName();
            if (name.endsWith("Action") && method.getParameterNames().length == 0) {
              validValues.add("\"" + name.substring(0, name.length() - "Action".length()) + "\"");
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.