Searched refs:doc (Results 1 - 25 of 29) sorted by relevance

12

/opengrok/src/org/opensolaris/opengrok/analysis/archive/
H A DBZip2Analyzer.java60 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
62 String path = doc.get("path");
78 fa.analyze(doc, bzSrc, xrefOut);
79 if (doc.get("t") != null) {
80 doc.removeField("t");
82 doc.add(new Field("t", g.typeName(), AnalyzerGuru.string_ft_stored_nanalyzed_norms));
H A DGZIPAnalyzer.java66 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
68 String path = doc.get("path");
87 fa.analyze(doc, gzSrc, xrefOut);
88 if (doc.get("t") != null) {
89 doc.removeField("t");
91 doc.add(new Field("t", g.typeName(), AnalyzerGuru.string_ft_stored_nanalyzed_norms));
H A DTarAnalyzer.java50 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
65 doc.add(new TextField("full", new IteratorReader(names)));
H A DZipAnalyzer.java50 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
65 doc.add(new TextField("full", new IteratorReader(names)));
/opengrok/src/org/opensolaris/opengrok/analysis/plain/
H A DPlainAnalyzer.java76 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
77 doc.add(new TextField(QueryBuilder.FULL, getReader(src.getStream())));
78 String fullpath = doc.get(QueryBuilder.FULLPATH);
82 doc.add(new TextField(QueryBuilder.DEFS, new IteratorReader(defs.getSymbols())));
83 doc.add(new TextField(QueryBuilder.REFS, getReader(src.getStream())));
85 doc.add(new StoredField(QueryBuilder.TAGS, tags));
97 doc.add(new StoredField(QueryBuilder.SCOPES, scopesSerialized));
H A DAbstractSourceCodeAnalyzer.java68 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
69 super.analyze(doc, src, xrefOut);
H A DXMLAnalyzer.java56 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
57 doc.add(new TextField("full", getReader(src.getStream())));
/opengrok/src/org/opensolaris/opengrok/analysis/executables/
H A DJarAnalyzer.java51 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
63 doc.add(new TextField("full", ename, Store.NO));
71 jca.analyze(doc, new BufferedInputStream(zis), xrefOut);
H A DJavaClassAnalyzer.java87 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
89 analyze(doc, in, xrefOut);
93 void analyze(Document doc, InputStream in, Writer xrefOut) throws IOException { argument
98 ClassParser classparser = new ClassParser(in, doc.get("path"));
110 LOGGER.log(Level.WARNING, "Couldn't flush xref, will retry once added to doc", ex);
124 doc.add(new TextField("defs", new IteratorReader(defs)));
125 doc.add(new TextField("refs", new IteratorReader(refs)));
126 doc.add(new TextField("full", fullout));
127 doc.add(new TextField("full", constants, Store.NO));
/opengrok/src/org/opensolaris/opengrok/search/
H A DResults.java89 int docId = hits[i].doc;
90 Document doc = searcher.doc(docId);
91 String rpath = doc.get(QueryBuilder.PATH);
98 dirDocs.add(doc);
183 for (Document doc : entry.getValue()) {
184 String rpath = doc.get(QueryBuilder.PATH);
199 String dd = df.format(DateTools.stringToDate(doc.get("date")));
210 Genre genre = Genre.get(doc.get("t"));
212 IndexableField tagsField = doc
[all...]
H A DSearchEngine.java199 int docId = hit.doc;
200 Document d = searcher.doc(docId);
232 int docId = hit.doc;
233 Document d = searcher.doc(docId);
386 int docId = hits[i].doc;
388 d = searcher.doc(docId);
404 Document doc = docs.get(ii);
405 String filename = doc.get(QueryBuilder.PATH);
407 Genre genre = Genre.get(doc.get(QueryBuilder.T));
409 IndexableField tagsField = doc
[all...]
/opengrok/platform/solaris/ips/
H A Dcreate.sh177 /usr/opengrok/doc
206 PKG pkgsend add file logging.properties mode=0444 owner=root group=sys path=/usr/opengrok/doc/logging.properties
207 PKG pkgsend add file README.txt mode=0444 owner=root group=sys path=/usr/opengrok/doc/README.txt
208 PKG pkgsend add file CHANGES.txt mode=0444 owner=root group=sys path=/usr/opengrok/doc/CHANGES.txt
209 PKG pkgsend add file LICENSE.txt mode=0444 owner=root group=sys path=/usr/opengrok/doc/LICENSE.txt
210 PKG pkgsend add file NOTICE.txt mode=0444 owner=root group=sys path=/usr/opengrok/doc/NOTICE.txt
211 PKG pkgsend add file doc/EXAMPLE.txt mode=0444 owner=root group=sys path=/usr/opengrok/doc/EXAMPLE.txt
212 PKG pkgsend add file doc/ctags.config mode=0444 owner=root group=sys path=/usr/opengrok/doc/ctag
[all...]
/opengrok/test/org/opensolaris/opengrok/analysis/c/
H A DCAnalyzerFactoryTest.java111 Document doc = new Document();
112 doc.add(new Field(QueryBuilder.FULLPATH, path,
117 analyzer.analyze(doc, getStreamSource(path), xrefOut);
119 IndexableField scopesField = doc.getField(QueryBuilder.SCOPES);
H A DCxxAnalyzerFactoryTest.java109 Document doc = new Document();
110 doc.add(new Field(QueryBuilder.FULLPATH, path,
117 analyzer.analyze(doc, getStreamSource(path), xrefOut);
119 IndexableField scopesField = doc.getField(QueryBuilder.SCOPES);
/opengrok/test/org/opensolaris/opengrok/analysis/clojure/
H A DClojureAnalyzerFactoryTest.java109 Document doc = new Document();
110 doc.add(new Field(QueryBuilder.FULLPATH, path,
114 analyzer.analyze(doc, getStreamSource(path), xrefOut);
116 Definitions definitions = Definitions.deserialize(doc.getField(QueryBuilder.TAGS).binaryValue().bytes);
/opengrok/test/org/opensolaris/opengrok/analysis/csharp/
H A DCSharpAnalyzerFactoryTest.java104 Document doc = new Document();
105 doc.add(new Field(QueryBuilder.FULLPATH, path,
110 analyzer.analyze(doc, getStreamSource(path), xrefOut);
112 IndexableField scopesField = doc.getField(QueryBuilder.SCOPES);
/opengrok/test/org/opensolaris/opengrok/analysis/java/
H A DJavaAnalyzerFactoryTest.java111 Document doc = new Document();
112 doc.add(new Field(QueryBuilder.FULLPATH, path,
117 analyzer.analyze(doc, getStreamSource(path), xrefOut);
119 IndexableField scopesField = doc.getField(QueryBuilder.SCOPES);
/opengrok/test/org/opensolaris/opengrok/analysis/pascal/
H A DPascalAnalyzerFactoryTest.java108 Document doc = new Document();
109 doc.add(new Field(QueryBuilder.FULLPATH, path,
114 analyzer.analyze(doc, getStreamSource(path), xrefOut);
116 Definitions definitions = Definitions.deserialize(doc.getField(QueryBuilder.TAGS).binaryValue().bytes);
/opengrok/src/org/opensolaris/opengrok/analysis/document/
H A DTroffAnalyzer.java55 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
56 doc.add(new TextField("full", getReader(src.getStream())));
/opengrok/src/org/opensolaris/opengrok/analysis/uue/
H A DUuencodeAnalyzer.java54 public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOException { argument
55 doc.add(new TextField("full", getReader(src.getStream())));
/opengrok/src/org/opensolaris/opengrok/analysis/
H A DAnalyzerGuru.java315 * @param doc The document to populate
322 public void populateDocument(Document doc, File file, String path, argument
327 doc.add(new Field(QueryBuilder.U, Util.path2uid(path, date),
329 doc.add(new Field(QueryBuilder.FULLPATH, file.getAbsolutePath(),
331 doc.add(new SortedDocValuesField(QueryBuilder.FULLPATH, new BytesRef(file.getAbsolutePath())));
336 doc.add(new TextField(QueryBuilder.HIST, hr));
342 doc.add(new Field(QueryBuilder.DATE, date, string_ft_stored_nanalyzed_norms));
343 doc.add(new SortedDocValuesField(QueryBuilder.DATE, new BytesRef(date)));
345 doc.add(new TextField(QueryBuilder.PATH, path, Store.YES));
348 doc
[all...]
/opengrok/test/org/opensolaris/opengrok/analysis/document/
H A DTroffAnalyzerTest.java74 String file = System.getProperty("opengrok.test.troff.doc",
120 Document doc = new Document();
122 analyzer.analyze(doc, new StreamSource() {
/opengrok/src/org/opensolaris/opengrok/web/
H A DSearchHelper.java334 Document doc = searcher.doc(hits[0].doc);
335 if (doc.getField(QueryBuilder.TAGS) != null) {
336 byte[] rawTags = doc.getField(QueryBuilder.TAGS).binaryValue().bytes;
348 + Util.URIEncodePath(searcher.doc(hits[0].doc).get(QueryBuilder.PATH))
/opengrok/src/org/opensolaris/opengrok/history/
H A DDirectoryHistoryReader.java126 int docId = hits[i].doc;
127 Document doc = searcher.doc(docId);
128 String rpath = doc.get(QueryBuilder.PATH);
134 cdate = DateTools.stringToDate(doc.get(QueryBuilder.DATE));
/opengrok/src/org/opensolaris/opengrok/index/
H A DIndexDatabase.java620 Document doc = new Document();
622 analyzerGuru.populateDocument(doc, file, path, fa, xrefOut);
630 cleanupResources(doc);
635 writer.addDocument(doc);
637 cleanupResources(doc);
653 * @param doc the document whose resources to clean up
655 private void cleanupResources(Document doc) { argument
656 for (IndexableField f : doc) {
865 DateTools.Resolution.MILLISECOND)); // construct uid for doc
1141 Document doc
[all...]

Completed in 77 milliseconds

12