001 package railo.runtime.search; 002 003 import railo.runtime.type.Array; 004 import railo.runtime.type.ArrayImpl; 005 006 public class SuggestionItem { 007 008 Array keywords=new ArrayImpl(); 009 Array keywordsScore=new ArrayImpl(); 010 011 public SuggestionItem(String[] arr) { 012 add(arr); 013 } 014 015 public void add(String[] arr) { 016 for(int i=0;i<arr.length;i++) { 017 keywords.appendEL(arr[i]); 018 keywordsScore.appendEL(new Double(99-i)); 019 } 020 } 021 022 public Array getKeywords() { 023 return keywords; 024 } 025 026 public Array getKeywordScore() { 027 return keywordsScore; 028 } 029 030 }