[PATCH] Searching for Monodoc
Mario Sopena <[email protected]>
| Newsgroups | gmane.comp.gnome.mono.documentation,gmane.comp.gnome.mono.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey, A patch that I promised to send some time ago. The patch would require that you download my own stripped version of Lucene from here[1]. That version is just the Lucene you can download from http://www.dotlucene.net/ but modified to be in a Monodoc.Lucene... namespace, which let us keep monodoc.dll in the GAC without breaking the Golden Rules [2]. The process to make the index is similar to the actual index. The important method is PopulateSearchableIndex which fills SearchableDocuments that are added to the Lucene index. It is implemented for the ecmaspec and the ecma providers. The SearchableDocuments have 5 fields: - title: nice title to show to the user - url: to retrieve the node later - hottext: the most important bits in this node - text: a big piece of text - examples: the code examples found The ones used for searching are the last 3 in the following order of importance: hottext > text > examples. The important missing things are: - The modifications made by the user aren't added to the index - Nodes added with the --edit parameter won't be searchable either - Right now, the whole Lucene is compiled in monodoc. Will it be better a lighter version of Lucene? Comments please! [1] http://personales.ya.com/msopena/Monodoc.Lucene.Net.tar.gz [2] http://www.mono-project.com/Assemblies_and_the_GAC _______________________________________________ Mono-docs-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-docs-list
search.tar.gz
(application/x-gzip, 8.3 KB) - not displayed