AnalyzerGuru.java revision 32
207N/A * See LICENSE.txt included in this distribution for the specific
207N/A * file and include the License file at LICENSE.txt.
207N/A * ident "@(#)AnalyzerGuru.java 1.3 06/02/22 SMI"
207N/Apublic class AnalyzerGuru {
207N/A IgnorantAnalyzer.class,
207N/A BZip2Analyzer.class,
207N/A FileAnalyzer.class,
207N/A XMLAnalyzer.class,
207N/A TroffAnalyzer.class,
928N/A ELFAnalyzer.class,
207N/A JavaClassAnalyzer.class,
207N/A ImageAnalyzer.class,
207N/A JarAnalyzer.class,
207N/A ZipAnalyzer.class,
207N/A TarAnalyzer.class,
207N/A ShAnalyzer.class,
207N/A PlainAnalyzer.class,
207N/A GZIPAnalyzer.class,
1026N/A JavaAnalyzer.class
207N/A private static HashMap<Class, FileAnalyzer> analyzerInstances = new HashMap<Class, FileAnalyzer>();
261N/A a = FileAnalyzer.class;
668N/A doc.add(new org.apache.lucene.document.Field("u", Util.uid(path, date), false, true, false));
668N/A doc.add(new org.apache.lucene.document.Field("fullpath", f.getAbsolutePath(), true, true, true));
668N/A } catch (IOException e) {
668N/A return getContentType(a);
460N/A return getContentType(a);
580N/A return contentType;
439N/A e.printStackTrace();
694N/A //System.err.println(path.substring(dotpos+1).toUpperCase() + " = " + analyzer.getSimpleName());
274N/A e.printStackTrace();
207N/A org.apache.lucene.document.Field field = (org.apache.lucene.document.Field) fields.nextElement();
656N/A System.out.println("\nFIELD = " + field.name() + " TOKEN STREAM = "+ ts.getClass().getName());
667N/A e.printStackTrace();