[Mono-dev] [PATCH] Searching for Monodoc

Mario Sopena mario.sopena at gmail.com
Wed Aug 31 21:09:09 EDT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: browser.diff
Type: text/x-patch
Size: 18260 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050901/09470c5d/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: docbrowser.diff
Type: text/x-patch
Size: 13357 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050901/09470c5d/attachment-0001.bin 


More information about the Mono-devel-list mailing list