I think is not the best approach you can have...
And there is no need to index code since there are no results of any
use... Personally i would index the pure text and keep in a database the
code plus an id
so my db would like let 's say
id text text+code
so i would send to lucene id + text
From within the webapp, page whatever where solr would just return an
id that i would use to retrieve the code with an XmlHttpRequest...
(ajaxian style)
____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.