Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

how to extract text from the result document in lucene search

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


dhivyakrishnan87 at yahoo

Oct 28, 2009, 3:11 AM

Post #1 of 9 (768 views)
Permalink
how to extract text from the result document in lucene search

Hi
 
Am a beginner in using lucene. I succeeded in running the demo files of lucene and found the concept.
 
When we execute the SearchFiles.java file in the demo folder, am getting the names of the documents containing the given query string. Is it possible to display some portions of the text containing that query string from the corresponding documents????? [as a google response].
 
can anyone help me in this context
 
Thanks in advance.
Dhivya


benhei at gmail

Oct 28, 2009, 3:23 AM

Post #2 of 9 (738 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

Hello Dhivya,

i'm not familiar with the Lucene Demos.
But for Highlighting take a look at
http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html

Best regards
Benjamin


dhivyakrishnan87 at yahoo

Oct 28, 2009, 3:33 AM

Post #3 of 9 (737 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

Thats exactly matching my need sir.
Thanx a lot
But is this highlighter in lucene 2.4.0?

--- On Wed, 10/28/09, Benjamin Heilbrunn <benhei [at] gmail> wrote:


From: Benjamin Heilbrunn <benhei [at] gmail>
Subject: Re: how to extract text from the result document in lucene search
To: java-user [at] lucene
Date: Wednesday, October 28, 2009, 10:23 AM


Hello Dhivya,

i'm not familiar with the Lucene Demos.
But for Highlighting take a look at
http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html

Best regards
Benjamin


anshumg at gmail

Oct 28, 2009, 3:51 AM

Post #4 of 9 (735 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

Yes Dhivya, there's a highlighter in the contrib for 2.4 as well.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Wed, Oct 28, 2009 at 4:03 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo>wrote:

> Thats exactly matching my need sir.
> Thanx a lot
> But is this highlighter in lucene 2.4.0?
>
> --- On Wed, 10/28/09, Benjamin Heilbrunn <benhei [at] gmail> wrote:
>
>
> From: Benjamin Heilbrunn <benhei [at] gmail>
> Subject: Re: how to extract text from the result document in lucene search
> To: java-user [at] lucene
> Date: Wednesday, October 28, 2009, 10:23 AM
>
>
> Hello Dhivya,
>
> i'm not familiar with the Lucene Demos.
> But for Highlighting take a look at
> http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html
>
> Best regards
> Benjamin
>
>
>
>
>


dhivyakrishnan87 at yahoo

Oct 28, 2009, 3:54 AM

Post #5 of 9 (733 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

ya i found sir.
May i know from which version is it available?


--- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:


From: Anshum <anshumg [at] gmail>
Subject: Re: how to extract text from the result document in lucene search
To: java-user [at] lucene
Date: Wednesday, October 28, 2009, 10:51 AM


Yes Dhivya, there's a highlighter in the contrib for 2.4 as well.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Wed, Oct 28, 2009 at 4:03 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo>wrote:

> Thats exactly matching my need sir.
> Thanx a lot
> But is this highlighter in lucene 2.4.0?
>
> --- On Wed, 10/28/09, Benjamin Heilbrunn <benhei [at] gmail> wrote:
>
>
> From: Benjamin Heilbrunn <benhei [at] gmail>
> Subject: Re: how to extract text from the result document in lucene search
> To: java-user [at] lucene
> Date: Wednesday, October 28, 2009, 10:23 AM
>
>
> Hello Dhivya,
>
> i'm not familiar with the Lucene Demos.
> But for Highlighting take a look at
> http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html
>
> Best regards
> Benjamin
>
>
>
>
>


anshumg at gmail

Oct 28, 2009, 3:59 AM

Post #6 of 9 (734 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

I guess it should be available starting 1.9 onwards and patch-able with a
few changes for even 1.4.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Wed, Oct 28, 2009 at 4:24 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo>wrote:

> ya i found sir.
> May i know from which version is it available?
>
>
> --- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:
>
>
> From: Anshum <anshumg [at] gmail>
> Subject: Re: how to extract text from the result document in lucene search
> To: java-user [at] lucene
> Date: Wednesday, October 28, 2009, 10:51 AM
>
>
> Yes Dhivya, there's a highlighter in the contrib for 2.4 as well.
>
> --
> Anshum Gupta
> Naukri Labs!
> http://ai-cafe.blogspot.com
>
> The facts expressed here belong to everybody, the opinions to me. The
> distinction is yours to draw............
>
>
> On Wed, Oct 28, 2009 at 4:03 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo
> >wrote:
>
> > Thats exactly matching my need sir.
> > Thanx a lot
> > But is this highlighter in lucene 2.4.0?
> >
> > --- On Wed, 10/28/09, Benjamin Heilbrunn <benhei [at] gmail> wrote:
> >
> >
> > From: Benjamin Heilbrunn <benhei [at] gmail>
> > Subject: Re: how to extract text from the result document in lucene
> search
> > To: java-user [at] lucene
> > Date: Wednesday, October 28, 2009, 10:23 AM
> >
> >
> > Hello Dhivya,
> >
> > i'm not familiar with the Lucene Demos.
> > But for Highlighting take a look at
> > http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html
> >
> > Best regards
> > Benjamin
> >
> >
> >
> >
> >
>
>
>
>
>


dhivyakrishnan87 at yahoo

Oct 28, 2009, 4:12 AM

Post #7 of 9 (731 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

Ya thats great sir.
Thanks a lot.
Currently am working with lucene 1.4.3 how to include that highlight class? Can you please let me know the procedure of using it?
 
Thanks in advance
Dhivya


--- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:


From: Anshum <anshumg [at] gmail>
Subject: Re: how to extract text from the result document in lucene search
To: java-user [at] lucene
Date: Wednesday, October 28, 2009, 10:59 AM


I guess it should be available starting 1.9 onwards and patch-able with a
few changes for even 1.4.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Wed, Oct 28, 2009 at 4:24 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo>wrote:

> ya i found sir.
> May i know from which version is it available?
>
>
> --- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:
>
>
> From: Anshum <anshumg [at] gmail>
> Subject: Re: how to extract text from the result document in lucene search
> To: java-user [at] lucene
> Date: Wednesday, October 28, 2009, 10:51 AM
>
>
> Yes Dhivya, there's a highlighter in the contrib for 2.4 as well.
>
> --
> Anshum Gupta
> Naukri Labs!
> http://ai-cafe.blogspot.com
>
> The facts expressed here belong to everybody, the opinions to me. The
> distinction is yours to draw............
>
>
> On Wed, Oct 28, 2009 at 4:03 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo
> >wrote:
>
> > Thats exactly matching my need sir.
> > Thanx a lot
> > But is this highlighter in lucene 2.4.0?
> >
> > --- On Wed, 10/28/09, Benjamin Heilbrunn <benhei [at] gmail> wrote:
> >
> >
> > From: Benjamin Heilbrunn <benhei [at] gmail>
> > Subject: Re: how to extract text from the result document in lucene
> search
> > To: java-user [at] lucene
> > Date: Wednesday, October 28, 2009, 10:23 AM
> >
> >
> > Hello Dhivya,
> >
> > i'm not familiar with the Lucene Demos.
> > But for Highlighting take a look at
> > http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html
> >
> > Best regards
> > Benjamin
> >
> >
> >
> >
> >
>
>
>
>
>


anshumg at gmail

Oct 28, 2009, 4:20 AM

Post #8 of 9 (724 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

I wouldn't have a reference to a version that old. You could request over
the community, and incase some one would have an archived version he/she
could share it with you,
It would require some time and modifications to the oldest available version
for the highlighter.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Wed, Oct 28, 2009 at 4:42 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo>wrote:

> Ya thats great sir.
> Thanks a lot.
> Currently am working with lucene 1.4.3 how to include that highlight class?
> Can you please let me know the procedure of using it?
>
> Thanks in advance
> Dhivya
>
>
> --- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:
>
>
> From: Anshum <anshumg [at] gmail>
> Subject: Re: how to extract text from the result document in lucene search
> To: java-user [at] lucene
> Date: Wednesday, October 28, 2009, 10:59 AM
>
>
> I guess it should be available starting 1.9 onwards and patch-able with a
> few changes for even 1.4.
>
> --
> Anshum Gupta
> Naukri Labs!
> http://ai-cafe.blogspot.com
>
> The facts expressed here belong to everybody, the opinions to me. The
> distinction is yours to draw............
>
>
> On Wed, Oct 28, 2009 at 4:24 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo
> >wrote:
>
> > ya i found sir.
> > May i know from which version is it available?
> >
> >
> > --- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:
> >
> >
> > From: Anshum <anshumg [at] gmail>
> > Subject: Re: how to extract text from the result document in lucene
> search
> > To: java-user [at] lucene
> > Date: Wednesday, October 28, 2009, 10:51 AM
> >
> >
> > Yes Dhivya, there's a highlighter in the contrib for 2.4 as well.
> >
> > --
> > Anshum Gupta
> > Naukri Labs!
> > http://ai-cafe.blogspot.com
> >
> > The facts expressed here belong to everybody, the opinions to me. The
> > distinction is yours to draw............
> >
> >
> > On Wed, Oct 28, 2009 at 4:03 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo
> > >wrote:
> >
> > > Thats exactly matching my need sir.
> > > Thanx a lot
> > > But is this highlighter in lucene 2.4.0?
> > >
> > > --- On Wed, 10/28/09, Benjamin Heilbrunn <benhei [at] gmail> wrote:
> > >
> > >
> > > From: Benjamin Heilbrunn <benhei [at] gmail>
> > > Subject: Re: how to extract text from the result document in lucene
> > search
> > > To: java-user [at] lucene
> > > Date: Wednesday, October 28, 2009, 10:23 AM
> > >
> > >
> > > Hello Dhivya,
> > >
> > > i'm not familiar with the Lucene Demos.
> > > But for Highlighting take a look at
> > > http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html
> > >
> > > Best regards
> > > Benjamin
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
>
>
>


dhivyakrishnan87 at yahoo

Oct 28, 2009, 4:23 AM

Post #9 of 9 (722 views)
Permalink
Re: how to extract text from the result document in lucene search [In reply to]

Okay sir. Let me then try out with lucene 2.4.0 demos.

--- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:


From: Anshum <anshumg [at] gmail>
Subject: Re: how to extract text from the result document in lucene search
To: java-user [at] lucene
Date: Wednesday, October 28, 2009, 11:20 AM


I wouldn't have a reference to a version that old. You could request over
the community, and incase some one would have an archived version he/she
could share it with you,
It would require some time and modifications to the oldest available version
for the highlighter.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Wed, Oct 28, 2009 at 4:42 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo>wrote:

> Ya thats great sir.
> Thanks a lot.
> Currently am working with lucene 1.4.3 how to include that highlight class?
> Can you please let me know the procedure of using it?
>
> Thanks in advance
> Dhivya
>
>
> --- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:
>
>
> From: Anshum <anshumg [at] gmail>
> Subject: Re: how to extract text from the result document in lucene search
> To: java-user [at] lucene
> Date: Wednesday, October 28, 2009, 10:59 AM
>
>
> I guess it should be available starting 1.9 onwards and patch-able with a
> few changes for even 1.4.
>
> --
> Anshum Gupta
> Naukri Labs!
> http://ai-cafe.blogspot.com
>
> The facts expressed here belong to everybody, the opinions to me. The
> distinction is yours to draw............
>
>
> On Wed, Oct 28, 2009 at 4:24 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo
> >wrote:
>
> > ya i found sir.
> > May i know from which version is it available?
> >
> >
> > --- On Wed, 10/28/09, Anshum <anshumg [at] gmail> wrote:
> >
> >
> > From: Anshum <anshumg [at] gmail>
> > Subject: Re: how to extract text from the result document in lucene
> search
> > To: java-user [at] lucene
> > Date: Wednesday, October 28, 2009, 10:51 AM
> >
> >
> > Yes Dhivya, there's a highlighter in the contrib for 2.4 as well.
> >
> > --
> > Anshum Gupta
> > Naukri Labs!
> > http://ai-cafe.blogspot.com
> >
> > The facts expressed here belong to everybody, the opinions to me. The
> > distinction is yours to draw............
> >
> >
> > On Wed, Oct 28, 2009 at 4:03 PM, DHIVYA M <dhivyakrishnan87 [at] yahoo
> > >wrote:
> >
> > > Thats exactly matching my need sir.
> > > Thanx a lot
> > > But is this highlighter in lucene 2.4.0?
> > >
> > > --- On Wed, 10/28/09, Benjamin Heilbrunn <benhei [at] gmail> wrote:
> > >
> > >
> > > From: Benjamin Heilbrunn <benhei [at] gmail>
> > > Subject: Re: how to extract text from the result document in lucene
> > search
> > > To: java-user [at] lucene
> > > Date: Wednesday, October 28, 2009, 10:23 AM
> > >
> > >
> > > Hello Dhivya,
> > >
> > > i'm not familiar with the Lucene Demos.
> > > But for Highlighting take a look at
> > > http://lucene.apache.org/java/2_9_0/api/contrib-highlighter/index.html
> > >
> > > Best regards
> > > Benjamin
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
>
>
>

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.