public SearchResults performSearchQuery(String query, int start) {
int file = DocumentContainer.getInstance().getDerivedAsFile();
List<MatchProposal> props = FullTextSearch.query(file, DocumentContainer.getInstance().getDerived(), query, start, 21);
SearchResults results = new SearchResults();
results.setMore(props.size() == 21);
results.setOffset(20);
results.setStart(start);
results.setQuery(query);
results.setType(SearchResults.TYPE_MANUAL_SEARCH);
if(props.size() == 21)
props.remove(20);
for(MatchProposal p : props)
p.setNotes(DBManager.getInstance().getNotesFor(TCNote.TYPE_PARAGRAPH, p.getId()));
results.setProposals(props);
return results;
}