To get the resulting XML from the action as a String, you call controller.response.contentAsString and store it in the xml variable.
要以 String 的形式从操作获取生成的 XML,调用 controller.response.contentAsString 并将其存储在 xml 变量中。
For this example, the search string is also converted to lowercase, resulting in a search that is not case-sensitive.
在这个例子中,搜索字符串还被转换成小写字符,因此这个搜索不是大小写敏感的。
If you reduce the annotation in the index to something simpler like 1we4, you reduce the index to 23 characters and you add that to the actual string character total of 33, resulting in 56.
如果把索引中的注释减少为更简单的内容(如1we4),则将把索引减少到23个字符并加上实际字符串字符总数33等于56。
应用推荐