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