Is it possible, in the response of a Solr query, to also return the line numbers in a document at the points where the results occur? Would that be a role of one of the formatters? If so, how do you enable it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The solution on which I have ended up using is to export line numbers (because it is source code I am indexing) to the indexing process; in other words, I prefix each exported line with the line number, which I apply as I read the source code for indexing.