Class JackrabbitIndexSearcher

    • Constructor Detail

      • JackrabbitIndexSearcher

        public JackrabbitIndexSearcher​(SessionImpl s,
                                       IndexReader r,
                                       ItemStateManager ism)
        Creates a new jackrabbit index searcher.
        Parameters:
        s - the session that executes the query.
        r - the index reader.
        ism - the shared item state manager.
    • Method Detail

      • execute

        public MultiColumnQueryHits execute​(Query query,
                                            Sort sort,
                                            long resultFetchHint,
                                            Name selectorName)
                                     throws IOException
        Executes the query and returns the hits that match the query.
        Parameters:
        query - the query to execute.
        sort - the sort criteria.
        resultFetchHint - a hint on how many results should be fetched.
        selectorName - the single selector name for the query hits.
        Returns:
        the query hits.
        Throws:
        IOException - if an error occurs while executing the query.
      • evaluate

        public QueryHits evaluate​(Query query,
                                  Sort sort,
                                  long resultFetchHint)
                           throws IOException
        Evaluates the query and returns the hits that match the query.
        Parameters:
        query - the query to execute.
        sort - the sort criteria.
        resultFetchHint - a hint on how many results should be fetched.
        Returns:
        the query hits.
        Throws:
        IOException - if an error occurs while executing the query.
      • evaluate

        public QueryHits evaluate​(Query query)
                           throws IOException
        Evaluates the query and returns the hits that match the query.
        Specified by:
        evaluate in interface EvaluationContext
        Parameters:
        query - the query to execute.
        Returns:
        the query hits.
        Throws:
        IOException - if an error occurs while executing the query.