Hi all, I've been trying to return a field of type ExternalFileField in the search result. Upon examining XMLWriter class, it seems like Solr can't do this out of the box. Therefore, I've tried to hack Solr to enable this behaviour. The goal is to call to ExternalFileField.getValueSource(SchemaField field,QParser parser) in XMLWriter.writeDoc(String name, Document document,...) method. There are two issues with doing this:
1) I need to create an instance of QParser in writeDoc method. What is the best way to do this? What kind of overhead of creating a new QParser for every document returned? 2) I have to modify writeDoc method to include the internal Lucene document Id because I need it to retrieve the ExternalFileField: fileField.getValueSource(schemaField, qparser).getValues(request.getSearcher().getIndexReader()).floatVal(docId) The immediate affect is that it breaks writeVal() method (because this method references writeDoc()). Any comments? Thanks in advance. -- Regards, Cuong Hoang