Changeset 2254 for trunk/java-client/org
- Timestamp:
- 2001-04-02T18:09:30+12:00 (23 years ago)
- Location:
- trunk/java-client/org/nzdl/gsdl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SearchPanel.java
r2252 r2254 219 219 //send query to collection 220 220 NzdlQuery nzdlQuery = new NzdlQuery(queryString); 221 222 // set options 223 nzdlQuery.setStemming((new Boolean(stemCheckBox.isSelected())).toString()); 224 String folding = "false"; 225 if (caseFoldCheckBox.isSelected()) 226 folding = "true"; 221 nzdlQuery.setStemming(stemCheckBox.isSelected()); 227 222 // interface reverses underlying logic so negate UI element state 228 223 nzdlQuery.setCaseFolding(! caseFoldCheckBox.isSelected()); … … 232 227 // "-1" means consider all the documents that match 233 228 nzdlQuery.setMaxDocs( -1 ); 234 235 229 236 230 NzdlRequest request = new NzdlRequest( nzdlQuery ); -
trunk/java-client/org/nzdl/gsdl/service/NzdlQuery.java
r2253 r2254 104 104 * @param case if false then sets query to be case sensitive. If true 105 105 * then sets query to be case insenstive. 106 */ 106 * 107 * removed the string version - surely we only need a boolean method here 108 * Dave 109 * 107 110 public void setCaseFolding(String _case) { 108 111 m_Options.put("CaseFold", _case); 109 112 } 113 */ 110 114 111 115 /** … … 126 130 * @param stem if "true", sets query to strip endings such as "...ing", 127 131 * "...ed". If "false", sets query to only match whole words. 128 * /132 * 129 133 public void setStemming(String _stem) { 130 134 m_Options.put("Stem", _stem); 135 } 136 * 137 * removed the string version - surely we only need a boolean method here 138 * Dave 139 */ 140 141 /** 142 * Sets query to ignore word endings. Default is "false." 143 * @param stem if "true", sets query to strip endings such as "...ing", 144 * "...ed". If "false", sets query to only match whole words. 145 */ 146 public void setStemming(boolean _stem) { 147 if (_stem == true) 148 m_Options.put("Stem", "true"); 149 else 150 m_Options.put("Stem", "false"); 131 151 } 132 152
Note:
See TracChangeset
for help on using the changeset viewer.