Package org.apache.lucene.search

Examples of org.apache.lucene.search.Searchable


        converter = index.getEntryConverter();

        // Process indexes into an array of Searchables.
        List<Searchable> searchableList = toSearchables( indexes );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        MultiSearcher searcher = null;

        try
View Full Code Here


   * @return
   * @throws CorruptIndexException
   * @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

        // Process indexes into an array of Searchables.
        List searchableList = new ArrayList( indexes );
        CollectionUtils.transform( searchableList, searchableTransformer );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        MultiSearcher searcher = null;

        try
View Full Code Here

        converter = index.getEntryConverter();

        // Process indexes into an array of Searchables.
        List<Searchable> searchableList = toSearchables( indexes );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        MultiSearcher searcher = null;

        try
View Full Code Here

        converter = index.getEntryConverter();

        // Process indexes into an array of Searchables.
        List<Searchable> searchableList = toSearchables( indexes );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        MultiSearcher searcher = null;

        try
View Full Code Here

        converter = index.getEntryConverter();

        // Process indexes into an array of Searchables.
        List<Searchable> searchableList = toSearchables( indexes );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        MultiSearcher searcher = null;

        try
View Full Code Here

        // Process indexes into an array of Searchables.
        List searchableList = new ArrayList( indexes );
        CollectionUtils.transform( searchableList, searchableTransformer );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        try
        {
            // Create a multi-searcher for looking up the information.
View Full Code Here

        // Process indexes into an array of Searchables.
        List searchableList = new ArrayList( indexes );
        CollectionUtils.transform( searchableList, searchableTransformer );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        try
        {
            // Create a multi-searcher for looking up the information.
View Full Code Here

        // Process indexes into an array of Searchables.
        List searchableList = new ArrayList( indexes );
        CollectionUtils.transform( searchableList, searchableTransformer );

        Searchable searchables[] = new Searchable[searchableList.size()];
        searchableList.toArray( searchables );

        MultiSearcher searcher = null;

        try
View Full Code Here

          logger.debug("binding remote searchables");
          List<Volume> volumes = Config.getConfig().getVolumes().getVolumes();
          LinkedList<Searchable> searchers = new LinkedList<Searchable>();
          for (Volume v: volumes) {
            if (v.getAllowRemoteSearch() && !v.isRemote() && v.getStatus()==Volume.Status.CLOSED || v.getStatus()==Volume.Status.ACTIVE) {
              Searchable volsearcher = new IndexSearcher(v.getIndexPath());
                    try {
                      searchers.add(volsearcher);
                    } catch (Exception e) {
                      logger.error("failed to add searcher {"+v+"}: "+e.getMessage(),e);
                    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.Searchable

Copyright © 2018 www.massapicom. 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.