[MonoDevelop] Lucene-based full-text search

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Oct 15 17:00:15 EDT 2010


On Fri, Oct 15, 2010 at 11:39 AM, Miguel de Icaza <miguel at novell.com> wrote:
> Hello,
>
>> 2. However, when it comes to searching the source code a dilemma arises.
>> On the one hand, there is the AST tree in MD which is used for all
>> operations including usage search, etc. On the other hand, if Lucene is
>> integrated into the product, it naturally (at least in my opinion) should
>> become the central search service, to be used by other subsystems, such as
>> refactoring, usage search, etc.
>
> I do not think you should use the AST as your source of information, it
> could for instance be incomplete if the source does not parse.
> It would also be limiting with languages that have no AST, so I would just
> search the full text of the sources.
> Keep it simple, and then if it needs tuning, do the tuning.

Agreed. More exact parser-driven indices would be useful, but we'll
always need the text version as a fallback, so it makes sense to
prototype it first IMO.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list