Examples of SearchException


Examples of net.sf.ehcache.search.SearchException

        return new StoreQueryImpl();
    }

    private void checkFrozen() {
        if (frozen) {
            throw new SearchException("Query is frozen and cannot be mutated");
        }
    }
View Full Code Here

Examples of net.sourceforge.pebble.search.SearchException

      } catch (ParseException pe) {
        pe.printStackTrace();
        searchResults.setMessage("Sorry, but there was an error. Please try another search");
      } catch (Exception e) {
        e.printStackTrace();
        throw new SearchException(e.getMessage());
      } finally {
        if (searcher != null) {
          try {
            searcher.close();
          } catch (IOException e) {
View Full Code Here

Examples of org.apache.slide.search.SearchException

            resource = new ComparableResourceImpl
                (node, query.getSearchToken(), query.getScope(),
                 factory.getPropertyProvider());
        }
        catch (SlideException e) {
            throw new SearchException (e);
        }

        result.add (resource);

View Full Code Here

Examples of org.apache.stanbol.contenthub.servicesapi.search.SearchException

            sq.setStart(offset);
            sq.setRows(limit + 1);
            this.searchResults = featuredSearch.search(sq, ontologyURI, indexName);
        } else {
            log.error("Should never reach here!!!!");
            throw new SearchException("Either 'queryTerm' or 'solrQuery' paramater should be set");
        }

        ResponseBuilder rb = null;
        if (acceptedMediaType.isCompatible(MediaType.TEXT_HTML_TYPE)) {
            // return HTML document
View Full Code Here

Examples of org.appfuse.dao.SearchException

        FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(entityManager);
        org.apache.lucene.search.Query qry;
        try {
            qry = HibernateSearchJpaTools.generateQuery(searchTerm, this.persistentClass, entityManager, defaultAnalyzer);
        } catch (ParseException ex) {
            throw new SearchException(ex);
        }
        org.hibernate.search.jpa.FullTextQuery hibQuery = fullTextEntityManager.createFullTextQuery(qry, this.persistentClass);
        // filter search results by owner.id value:
        // hibQuery.enableFullTextFilter("owned").setParameter("ownerId", owner.getId().toString());
        return hibQuery.getResultList();
View Full Code Here

Examples of org.dbpedia.spotlight.exceptions.SearchException

        //LOG.debug("Searching the index for text: "+text);
        List<FeatureVector> results = new LinkedList<FeatureVector>();
        try {
            results = search(mLucene.getQuery(text));
        } catch (Exception e) {
            throw new SearchException("Error searching for text "+text, e);
        }
        return results;
    }
View Full Code Here

Examples of org.dbunit.util.search.SearchException

            DatabaseMetaData metaData = conn.getMetaData();
            SortedSet edges = new TreeSet();
            getNodes(type, node, conn, schema, metaData, edges);
            return edges;
        } catch (SQLException e) {
            throw new SearchException(e);
        } catch (NoSuchTableException e) {
            throw new SearchException(e);
        }
    }
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.search.SearchException

      managers = new ArrayList<searchManager>( search_managers );
    }
   
    if ( managers.size() == 0 ){
     
      throw( new SearchException( "No search managers registered - try later" ));
    }
   
    return( managers.get(0));
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.search.SearchException

    public void
    engineFailed(
      Engine     engine,
      Throwable   cause )
    {
      failed( engine, new SearchException( "Search failed", cause ));
    }
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.search.SearchException

    public void
    engineRequiresLogin(
      Engine     engine,
      Throwable   cause )
    {
      failed( engine, new SearchException( "Authentication required", cause ));
    }
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.