<%@ taglib uri="/WEB-INF/tairtags.tld" prefix="tair" %> <% pub.servlets.article.FullTextSearchI results = (pub.servlets.article.FullTextSearchI) request.getAttribute("results"); %> <% java.util.List stop_words = (java.util.List) request.getAttribute("stop_words"); %> <% java.util.List stemmed_terms = (java.util.List) request.getAttribute("stemmed_terms"); %> <% String limit = "20"; %> <% query = pub.utils.StringUtils.replace(query, "\"", """); %>

Full text search

This is an experimental search interface. Please enter a set of terms below separated by whitespace. I'll try doing a full text search on all articles in the database and return a list of results sorted by relevance.

Queries are formed using a variation of Alta-Vista style syntax; separated terms can be separated by uppercased AND and OR constraints. There is a complete Query definition page here. i.e: ("ri lines" AND ABRC) OR (agamous AND "inbred lines").

Query:
Search through <%=collection%>: <%--
abstracts > --%>
article full texts >

I found <%= results.size() %> results. <% if (stop_words.size() > 0) { %> I had to filter out the following stop words from the query: [ <%= pub.utils.StringUtils.join(", ", stop_words) %> ] <% } %>
(Jump to page " max_position="<%= ""+results.size() %>" /> )

<%-- fixme! This should not be in here... --%> <% for (int i = Integer.parseInt(start) - 1; i < results.size() && i - Integer.parseInt(start) + 1 < Integer.parseInt(limit); i++) { %> <%= i+1 %>. <%-- --%> <%-- --%> <% } %>
" max_position="<%= ""+results.size() %>" />