Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-22 Thread Michael McCandless
On Mon, Jul 22, 2013 at 9:57 AM, VIGNESH S wrote: > Hi Mike, > > I am indexing at the document level that is full book to a field.For > Example iam indexing the full book which contains some term say Android at > the first page,last page. > > when i do a search,I will get the document. > > In that

Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-22 Thread VIGNESH S
Hi Mike, I am indexing at the document level that is full book to a field.For Example iam indexing the full book which contains some term say Android at the first page,last page. when i do a search,I will get the document. In that document ,i need to highlight only the first sentence which matc

Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-18 Thread Michael McCandless
But for this one document, where you get only the first sentence back from PH without "android" in it, does "android" in fact occur in that field for that document? Ie, it could be that document was returned because another field (e.g. title) matched, but the body field you are highlighting on did

Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-17 Thread VIGNESH S
Hi Mike, I am getting the Search Hits. Will PostingsHighlighter support all analyzers.? Thanks and Regards Vignesh Srinivasan On Wed, Jul 17, 2013 at 11:06 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > Hmm it sounds like you are getting the "default passage" (first N > senten

Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-17 Thread VIGNESH S
Hi Mike, Will PostingsHighlighter support all analyzers.? Thanks and Regards Vignesh Srinivasan On Wed, Jul 17, 2013 at 11:06 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > Hmm it sounds like you are getting the "default passage" (first N > sentences), which happens when the doc

Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-17 Thread Michael McCandless
Hmm it sounds like you are getting the "default passage" (first N sentences), which happens when the document did not have any matched terms from the query. Are you sure your content matches Android? Can you post a full test case showing the issue? Mike McCandless http://blog.mikemccandless.com

Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-17 Thread VIGNESH S
Hi Mike, I tried the TestPostingsHighlighter.java.The contents I gave my own content.. In that,If iam searching "Android",it is always returning the First Sentence as highlighted text whether the sentence contains Searched keyword or not.. On Wed, Jul 17, 2013 at 3:48 PM, VIGNESH S wrote: >

Re: PostingsHighlighter to highlight the first Match ion the document

2013-07-17 Thread Michael McCandless
You might be able to make a custom scorer that assigns an insanely great score to the first sentence it's asked to score? Mike McCandless http://blog.mikemccandless.com On Wed, Jul 17, 2013 at 6:18 AM, VIGNESH S wrote: > Hi, > > I need to do highlight the first sentence which matches the searc

PostingsHighlighter to highlight the first Match ion the document

2013-07-17 Thread VIGNESH S
Hi, I need to do highlight the first sentence which matches the search keyword in a document using PostingsHighlighter. How can i do this Any Help or suggestions welcome -- Thanks and Regards Vignesh Srinivasan