Hi all,

Tests are going very well with sorl. I'm working for an academic project, with not a lot of users, but with high demands, this will explain the background of my question. For linguistic activities, searching is a goal by itself, retrieving a document may be second. That's why it's common to serve thousands of "highlighted snippets" from results (in solr terms), like a "concordancer".

In such cases, it seems memory expensive to prepare really big snippets lists from StandardRequestHandler. I'm beginning to make it work from a ResponseWriter (thanks for all needed code already in HighlightingUtils), so that snippets are directly written to the response, without storing.

Before working too much on this code, is it good practice ? Did I miss an important reason ? I understand the choice of StandardRequestHandler for a normal usage of a search engine (paged results), to avoid code replication for each ResponseWriter (XML, Json...). Am I wrong ?

If solr/lucene gurus have time to listen, I will also need some infos about highlighter, for another post.

--
Frédéric Glorieux
École nationale des chartes
direction des nouvelles technologies et de l'informatique

Reply via email to