src/retrieval based query topic analysis/src/edu/virginia/cs/index/SearchResult.java
public void trimResults(int from) {
        // bounds checking
        if (from >= results.size()) {
            results = new ArrayList<>();
            return;
        }

        int to = results.size();

        // trimming
        List<ResultDoc> newResults = results.subList(from, to);
        results = new ArrayList<>(newResults);
    }
/**
     * Temporarily used to create paginated results.
     *
     * @param from
     */
Temporarily used to create paginated results.
@param from
Temporarily used to create paginated results . @param from
public void trimResults(int from) {
        if (from >= results.size()) {
            results = new ArrayList<>();
            return;
        }
        int to = results.size();
        List<ResultDoc> newResults = results.subList(from, to);
        results = new ArrayList<>(newResults);
    }
public void trimResults ( int from ) { if ( from >= results . size ( ) ) { results = new ArrayList < > ( ) ; return ; } int to = results . size ( ) ; List < ResultDoc > newResults = results . subList ( from , to ) ; results = new ArrayList < > ( newResults ) ; }
Temporarily used to create paginated results.
Temporarily used to create paginated results .
// bounds checking // trimming