Re: Highlighting search words in full document

2013-04-08 Thread Darren Hoffman
Thanks, Erick. I'll try that. Darren On 2013-04-07 3:25 PM, "Erick Erickson" wrote: >Well, at that point you have a doc ID presumably. When you format your >responses to the initial query, the link you provide for each verse is >something like > >yourserver/solr/collection1/select?q=id:chapter_

Re: Highlighting search words in full document

2013-04-07 Thread Erick Erickson
Well, at that point you have a doc ID presumably. When you format your responses to the initial query, the link you provide for each verse is something like yourserver/solr/collection1/select?q=id:chapter_id&hl=true&hl.fl=fullchaptertext&hl.q=. So when the user clicks on it, you get a response wi

Re: Highlighting search words in full document

2013-04-07 Thread Darren Hoffman
Thanks for the response, Erick. I have implemented just what you have described. The question I have is how to highlight the searched words in the entire chapter that were highlighted in the selected verse. Thanks! Sent from my iPhone On Apr 7, 2013, at 5:38 AM, Erick Erickson wrote: > Soun

Re: Highlighting search words in full document

2013-04-07 Thread Erick Erickson
Sounds like what you want to do is 1> with each verse, store the chapter ID. This could be the ID of another document. There's no requirement that all docs in an index have the same structure. In this case, you could have a "type" field in each doc with values like "verse" and "chapter". For your v

Highlighting search words in full document

2013-04-06 Thread Darren Hoffman
I am creating a Bible search app that indexes each verse of the bible as a separate document. When a user selects a verse from search results, I am wanting to show an entire chapter of the Bible with the search words highlighted. I'm using the FastVectorHighlighter and would like to know the best a