[Mono-docs-list] [PATCH] Searching for Monodoc

Mario Sopena mario.sopena at gmail.com
Thu Sep 1 05:17:39 EDT 2005


  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: search.tar.gz
Type: application/x-gzip
Size: 8491 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-docs-list/attachments/20050901/77cb2a7c/search.tar.gz

More information about the Mono-docs-list mailing list