SearchEngine.java revision 405
0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License (the "License"). 0N/A * You may not use this file except in compliance with the License. 0N/A * language governing permissions and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * If applicable, add the following below this CDDL HEADER, with the 405N/A * fields enclosed by brackets "[]" replaced with your own identifying 0N/A * information: Portions Copyright [yyyy] [name of copyright owner] 0N/A * Copyright 2005 Trond Norbye. All rights reserved. 0N/A * Use is subject to license terms. 0N/A * This is an encapsulation of the details on how to seach in the index 0N/A * @author Trond Norbye 0N/A * Holds value of property definition. 0N/A * Holds value of property file. 0N/A * Holds value of property freetext. 0N/A * Holds value of property history. 0N/A * Holds value of property symbol. 0N/A * Holds value of property indexDatabase. 0N/A * Creates a new instance of SearchEngine 0N/A * Execute a search. Before calling this function, you must set the 0N/A * appropriate seach critera with the set-functions. 234N/A * @return The number of hits 234N/A // search the index database 0N/A// } else if("h".equals(genre) && indexDatabase.getSource() != null && summer != null){ 0N/A// Reader r = new TagFilter(new BufferedReader(new FileReader(srcRoot + rpath))); 0N/A// int len = r.read(content); 0N/A// out.write(summer.getSummary(new String(content, 0, len)).toString()); 0N/A * Getter for property definition. 0N/A * @return Value of property definition. 0N/A * Setter for property definition. 0N/A * @param definition New value of property definition. 0N/A * Getter for property file. 0N/A * @return Value of property file. 0N/A * Setter for property file. 0N/A * @param file New value of property file. 0N/A * Getter for property freetext. 0N/A * @return Value of property freetext. 0N/A * Setter for property freetext. 0N/A * @param freetext New value of property freetext. 0N/A * Getter for property history. 0N/A * @return Value of property history. 0N/A * Setter for property history. 0N/A * @param history New value of property history. 0N/A * Getter for property symbol. 0N/A * @return Value of property symbol. 0N/A * Setter for property symbol. 0N/A * @param symbol New value of property symbol.