Documentation of 'org.apache.lucene.search.ParallelMultiSearcher' Java class
ParallelMultiSearcher
org.apache.lucene.search

Class ParallelMultiSearcher

    • Constructor Detail

      • ParallelMultiSearcher

        public ParallelMultiSearcher(Searchable[] searchables)
                              throws java.io.IOException
        Creates a searcher which searches searchables.
        Throws:
        java.io.IOException
    • Method Detail

      • search

        public TopDocs search(Weight weight,
                              Filter filter,
                              int nDocs)
                       throws java.io.IOException
        A search implementation which spans a new thread for each Searchable, waits for each search to complete and merge the results back together.
        Specified by:
        search in interface Searchable
        Overrides:
        search in class MultiSearcher
        Throws:
        java.io.IOException
      • search

        public TopFieldDocs search(Weight weight,
                                   Filter filter,
                                   int nDocs,
                                   Sort sort)
                            throws java.io.IOException
        A search implementation allowing sorting which spans a new thread for each Searchable, waits for each search to complete and merges the results back together.
        Specified by:
        search in interface Searchable
        Overrides:
        search in class MultiSearcher
        Throws:
        java.io.IOException
      • search

        public void search(Weight weight,
                           Filter filter,
                           HitCollector results)
                    throws java.io.IOException
        Lower-level search API.

        HitCollector.collect(int,float) is called for every non-zero scoring document.

        Applications should only use this if they need all of the matching documents. The high-level search API (Searcher.search(Query)) is usually more efficient, as it skips non-high-scoring hits.

        Specified by:
        search in interface Searchable
        Overrides:
        search in class MultiSearcher
        Parameters:
        weight - to match documents
        filter - if non-null, a bitset used to eliminate some documents
        results - to receive hits
        Throws:
        java.io.IOException
      • rewrite

        public Query rewrite(Query original)
                      throws java.io.IOException
        Description copied from interface: Searchable
        Expert: called to re-write queries into primitive queries.
        Specified by:
        rewrite in interface Searchable
        Overrides:
        rewrite in class MultiSearcher
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.