Package com.esri.gpt.catalog.lucene

Examples of com.esri.gpt.catalog.lucene.LuceneIndexAdapter.newSearcher()


    }

    LuceneIndexAdapter indexAdapter = new LuceneIndexAdapter(context);
    IndexSearcher searcher = null;
    try {
      searcher = indexAdapter.newSearcher();
      IndexReader indexReader = searcher.getIndexReader();
      for (String fieldName : indexReader.getFieldNames(IndexReader.FieldOption.ALL)) {
        fields.add(new IFeedRecords.FieldMeta(IFeedRecord.STD_COLLECTION_INDEX + "." + fieldName, "esriFieldTypeString", fieldName));
      }
    } catch (Exception e) {
View Full Code Here


        if (pathInfo.endsWith("/")) pathInfo = pathInfo.substring(0,(pathInfo.length() - 1));
        //System.err.println(pathInfo);
      }
     
      adapter = new LuceneIndexAdapter(context);  
      searcher = adapter.newSearcher();
      IndexReader reader = searcher.getIndexReader();
      StatsRequest statsRequest = new StatsRequest(context);
      statsRequest.setResponseWriter(writer);
      statsRequest.prepare(reader);
      statsRequest.setSortBy(sortBy);
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.