예제 #1
0
 /**
  * A list of between two and three items containing the information in this result.
  *
  * @return A list.
  */
 public List<Object> asList() {
   List<Object> ret = new ArrayList<Object>();
   ret.add(ws.getName());
   ret.add(highlightedDesc);
   ret.add(score);
   ret.add(tags);
   return ret;
 }
예제 #2
0
 @Override
 public String toString() {
   return String.format(
       "SearchResult Object {\n\titem:\t%s:%s\n\tdesc:\t'%s'\n\tscore:\t%.3f\n\ttags:\t%s\n}",
       ws.getTagType(), ws.getName(), highlightedDesc, score, tags.toString());
 }