Examples of SearchItem


Examples of com.netflix.exhibitor.core.index.SearchItem

        SearchResult    result;
        try
        {
            DateFormat      dateFormatter = new SimpleDateFormat(DATE_FORMAT_STR);
            SearchItem      item = logSearch.toResult(docId);
            if ( item == null )
            {
                return Response.status(Response.Status.NOT_FOUND).build();
            }

            byte[]          bytes = logSearch.toData(docId);
            if ( bytes == null )
            {
                bytes = new byte[0];
            }
            result = new SearchResult
            (
                docId,
                item.getType(),
                item.getPath(),
                dateFormatter.format(item.getDate()),
                new String(bytes, "UTF-8"),
                ExplorerResource.bytesToString(bytes)
            );
        }
        finally
View Full Code Here

Examples of com.netflix.exhibitor.core.index.SearchItem

            {
                if ( i < cachedSearch.getTotalHits() )
                {
                    ObjectNode      data = JsonNodeFactory.instance.objectNode();
                    int             docId = cachedSearch.getNthDocId(i);
                    SearchItem      item = logSearch.toResult(docId);
                   
                    data.put("DT_RowId", "index-query-result-" + docId);
                    data.put("0", getTypeName(EntryTypes.getFromId(item.getType())));
                    data.put("1", dateFormatter.format(item.getDate()));
                    data.put("2", trimPath(item.getPath()));

                    dataTab.add(data);
                }
            }
View Full Code Here

Examples of hudson.search.SearchItem

       
        // now make sure we can fetch item1 from the index
        List<SearchItem> result = new ArrayList<SearchItem>();
        index.find(displayName1, result);
        Assert.assertEquals(1, result.size());
        SearchItem actual = result.get(0);
        Assert.assertEquals(actual.getSearchName(), item1.getDisplayName());
        Assert.assertEquals(actual.getSearchUrl(), item1.getSearchUrl());

        // clear the result array for the next search result to test
        result.clear();
        // make sure we can fetch item 2 from the index
        index.find(displayName2, result);
        Assert.assertEquals(1, result.size());
        actual = result.get(0);
        Assert.assertEquals(actual.getSearchName(), item2.getDisplayName());
        Assert.assertEquals(actual.getSearchUrl(), item2.getSearchUrl());
    }
View Full Code Here

Examples of org.wijiscommons.ssaf.schema.search.SearchItem

   
    // Iterate searcItems and build QueryString
    for (int i=0; i < searchItemList.size(); i++ )
    {
     
      SearchItem searchItem = searchItemList.get(i);
     
      if (searchItem != null || (searchItem.getPointerName() != null && searchItem.getPointerValue() != null))
      {
     
        String name = searchItem.getPointerName();
        String value = searchItem.getPointerValue().toLowerCase().replace(' ', '_');
        if (name != null && value != null)
        {
          if (recordCounter == 0)
          {
            queryString.append(name.toLowerCase().replace(' ', '_'));
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.