net.sf.zekr.engine.search.lucene
Class AdvancedSearchResult

java.lang.Object
  extended by net.sf.zekr.engine.search.SearchResultModel
      extended by net.sf.zekr.engine.search.lucene.AdvancedSearchResult

public class AdvancedSearchResult
extends SearchResultModel


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.zekr.engine.search.SearchResultModel
SearchResultModel.Iter
 
Field Summary
 
Fields inherited from class net.sf.zekr.engine.search.SearchResultModel
clause, maxResultPerPage, pageNum, rawQuery, resultPerPage, results, totalMatch
 
Constructor Summary
AdvancedSearchResult(IQuranText quranText, java.util.List results, java.lang.String clause, java.lang.String rawQuery, int totalMatch, AbstractSearchResultComparator ayaComparator, boolean ascending)
          Deprecated. use SearchResultModel instead.
 
Method Summary
 
Methods inherited from class net.sf.zekr.engine.search.SearchResultModel
getClause, getMaxResultPerPage, getPage, getQuranText, getRawQuery, getResultCount, getResultPageCount, getResults, getTotalMatch, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedSearchResult

public AdvancedSearchResult(IQuranText quranText,
                            java.util.List results,
                            java.lang.String clause,
                            java.lang.String rawQuery,
                            int totalMatch,
                            AbstractSearchResultComparator ayaComparator,
                            boolean ascending)
Deprecated. use SearchResultModel instead.

Instances of this class hold search results including number of matched ayas, number of total matched elements and highlighted matched ayas.

Parameters:
quranText - Quran or translation text on which search taken place
results - a list of SearchResultItems
clause - a string representation of whole-words of all the matched text parts
rawQuery - raw user query
totalMatch - total count of all highlighted text parts
ayaComparator - the AbstractSearchResultComparator to be used for sorting results
ascending -