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