- Timestamp:
- 2003-09-01T15:44:22+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/LuceneSearch.java
r5257 r5401 75 75 Element param_list = (Element) GSXML.getChildByTagName(request, GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER); 76 76 if (param_list == null) { 77 System.err.println(" Error: TextQuery request had no paramList.");77 System.err.println("LuceneSearch Error: TextQuery request had no paramList."); 78 78 return result; // Return the empty result 79 79 } … … 85 85 String query_string = (String) params.get(QUERY_PARAM); 86 86 if (query_string == null || query_string.equals("")) { 87 System.err.println(" Error: TextQuery request had no query string.");87 System.err.println("LuceneSearch Error: TextQuery request had no query string."); 88 88 return result; // Return the empty result 89 89 } … … 99 99 Query query = new TermQuery(term); 100 100 101 102 System.out.println("Searching for: " + query.toString("content"));103 104 101 Hits hits = searcher.search(query); 105 System.out.println(hits.length() + " total matching documents");106 102 107 103 for (int i=0; i<hits.length(); i++) {
Note:
See TracChangeset
for help on using the changeset viewer.