Re: Post-processing of Solr responses in Velocity templates by calling external Java methods

2018-01-25 Thread Erik Hatcher
Ravindra - So you have documents that represent *lines*, but for each line document you want to render the 3 lines (documents) before and after. Hmmm - tricky! Velocity itself isn’t going to help you here. You’ll need to do additional searches to get the “context documents”. Given tha

Re: Post-processing of Solr responses in Velocity templates by calling external Java methods

2018-01-25 Thread Emir Arnautović
Hi Ravi, It seems to me that you are trying to simulate some of highlighting features, but might be wrong. Can you explain your problem not the problem you run into with your solution. With what you explained, it seems to me that the easiest solution would be to have snippet field that is store

Post-processing of Solr responses in Velocity templates by calling external Java methods

2018-01-24 Thread Ravindra Soni
Hi, *Quick context of the application first.* I am currently using Solr in standalone mode to index thousands of text-like documents (not exactly textual documents). A single document has a structure like following: - *id* - unique file id - *line_text* - textual data - *file_local_url