lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Highlighting search words in full document
Date Sun, 07 Apr 2013 12:38:40 GMT
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 verse
searches, you specify an fq=type:verse.

2> Along with each verse, you store the chapter ID, and when a use
clicks on the chapter you use the doc information to fetch the doc
containing that verse and display the highlighted version.


On Sat, Apr 6, 2013 at 11:57 PM, Darren Hoffman <> wrote:
> 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 approach to accomplish this. I am also currently with Lucene 3.6 but am
> looking to upgrade to 4.2.
> Thanks in advance.
> Darren Hoffman

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message