Package org.apache.lucene.search

Examples of org.apache.lucene.search.Searchable.doc()


   * @throws IOException
   */
  protected Document doc(final String shardName, final int docId, final String[] fieldNames) throws IOException {
    final Searchable searchable = getSearcherByShard(shardName);
    if (fieldNames == null) {
      return searchable.doc(docId);
    } else {
      return searchable.doc(docId, new MapFieldSelector(fieldNames));
    }
  }

View Full Code Here


  protected Document doc(final String shardName, final int docId, final String[] fieldNames) throws IOException {
    final Searchable searchable = getSearcherByShard(shardName);
    if (fieldNames == null) {
      return searchable.doc(docId);
    } else {
      return searchable.doc(docId, new MapFieldSelector(fieldNames));
    }
  }

  /**
   * Rewrites a query for the given shards
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.