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 0N/A * fields enclosed by brackets "[]" replaced with your own identifying 0N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1340N/A * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 1185N/A * Portions Copyright 2011 Jens Elkner. 0N/A * This is supposed to get the matching lines from sourcefile. 0N/A * since lucene does not easily give the match context. 1138N/A * Map whose keys tell which fields to look for in the source file, and 1138N/A * whose values tell if the field is case insensitive (true for 1138N/A * insensitivity, false for sensitivity). 0N/A * Constructs a context generator 890N/A * @param query the query to generate the result for 986N/A * @param queryStrings map from field names to queries against the fields 890N/A //System.err.println("Found Matchers = "+ m.length + " for " + query); 986N/A * Build the {@code queryAsURI} string that holds the query in a form 986N/A * that's suitable for sending it as part of a URI. 986N/A * @param subqueries a map containing the query text for each field 1185N/A field =
"q";
// bah - search query params should be consistent! 1185N/A * Closes the given <var>in</var> reader on return. 0N/A * @param in File to be matched 0N/A * @param out to write the context 0N/A * @param morePrefix to link to more... page 0N/A * @param path path of the file 0N/A * @param tags format to highlight defs. 0N/A * @param limit should the number of matching lines be limited? 0N/A * @return Did it get any matching context? 1185N/A /* desc[0] is matched symbol 350N/A * desc[1] is line number 1185N/A * desc[3] is matching line; 0N/A // @todo verify why we ignore all exceptions? 0N/A * Just to get the matching tag send a null in 597N/A // we probably only read parts of the file, so set the 597N/A // truncated flag to enable the [all...] link that 597N/A // requests all matches 597N/A // truncate to last line read (don't look more than 100 597N/A //out.write("<br> <i>Matched " + token + " maxlines = " + matchedLines + "</i><br>");