lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: we are using lucene search engine. While searching a word - is there a way by which we can get the exact line within the text (location of that word) in the whole document...
Date Wed, 08 Feb 2012 12:24:38 GMT
Can you back up and tell us what the purpose here is? Is it
just highlighting? In which case you can use the highlighter
package....

Best
Erick

On Wed, Feb 8, 2012 at 1:53 AM, neerajshah84 <neerajshah84@gmail.com> wrote:
> we are using lucene search engine. While searching a word - is there a way by
> which we can get the exact line within the text (location of that word) in
> the whole document...
>
> when i search using lucene index, i got information like number of hits,file
> name,file location for the search term.
> Is there any way in lucene through which we can get the location of that
> line or word in file that contains the searchable word/term?
> And put that information in lucene index so that when user searchs a
> particular word using index, the result will also show that particular line
> which contains the search term.
> How do i do that
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/we-are-using-lucene-search-engine-While-searching-a-word-is-there-a-way-by-which-we-can-get-the-exac-tp3725064p3725064.html
> Sent from the Lucene - Java Developer mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message