Term offsets for highlighting

2010-04-16 Thread Stephen Greene
Hello, I am trying to determine begin and end offsets for terms and phrases matching a query. Is there a way using either the highlighter or fast vector highlighter in contrib? I have already attempted extending the highlighter which would match terms but would not match phrases. The rea

Re: Term offsets for highlighting

2010-04-16 Thread Koji Sekiguchi
Stephen Greene wrote: Hello, I am trying to determine begin and end offsets for terms and phrases matching a query. Is there a way using either the highlighter or fast vector highlighter in contrib? I have already attempted extending the highlighter which would match terms but would not

RE: Term offsets for highlighting

2010-04-18 Thread Stephen Greene
...@r.email.ne.jp] Sent: Friday, April 16, 2010 9:49 PM To: java-user@lucene.apache.org Subject: Re: Term offsets for highlighting Stephen Greene wrote: > Hello, > > > > I am trying to determine begin and end offsets for terms and phrases > matching a query. > > Is there a way usin

Re: Term offsets for highlighting

2010-04-18 Thread Koji Sekiguchi
Stephen Greene wrote: Hi Koji, Thank you for your reply. I did try the QueryScorer without success, but I was using Lucene 2.4.x Hi Steve, I thought you were using 2.9 or later because you mentioned FastVectorHighlighter in your previous mail (FVH was first introduced in 2.9). If I remembe

RE: Term offsets for highlighting

2010-04-19 Thread Stephen Greene
Subject: Re: Term offsets for highlighting Stephen Greene wrote: > Hi Koji, > > Thank you for your reply. I did try the QueryScorer without success, but > I was using Lucene 2.4.x > Hi Steve, I thought you were using 2.9 or later because you mentioned FastVectorHighlighter in you

RE: Term offsets for highlighting

2010-04-19 Thread Stephen Greene
positional offsets to have highlighting tags applied to them in a separate process. Thank you for your insight, Steve -Original Message- From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] Sent: Sunday, April 18, 2010 10:42 AM To: java-user@lucene.apache.org Subject: Re: Term offsets for

Re: Term offsets for highlighting

2010-04-19 Thread Koji Sekiguchi
Stephen Greene wrote: Hi Koji, An additional question. Is it possible to access the FieldTermStack from the FastVectorHighlighter after the it has been populated with matching terms from the field? I think this would provide an ideal solution for this problem, as ultimately I am only concerned

RE: Term offsets for highlighting

2010-04-22 Thread Stephen Greene
ay, April 19, 2010 9:02 PM To: java-user@lucene.apache.org Subject: Re: Term offsets for highlighting Stephen Greene wrote: > Hi Koji, > > An additional question. Is it possible to access the FieldTermStack from > the FastVectorHighlighter after the it has been populated with matching

Re: Term offsets for highlighting

2010-04-24 Thread Koji Sekiguchi
Hi Steve, > is there a way to access a TermVector containing only matched terms, > or is my previous approach still the So you want to access FieldTermStack, I understand. The way to access it, I wrote it at previous mail: You cannot access FieldTermStack from FVH, but I think you can create i

RE: Term offsets for highlighting

2010-04-26 Thread Stephen Greene
tIndexReader(), pintDocId, fieldName); -Original Message- From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] Sent: Saturday, April 24, 2010 5:18 AM To: java-user@lucene.apache.org Subject: Re: Term offsets for highlighting Hi Steve, > is there a way to access a TermVector containin

Re: Term offsets for highlighting

2010-04-26 Thread Koji Sekiguchi
Stephen Greene wrote: Hi Koji, Thank you. I implemented a solution based on the FieldTermStackTest.java and if I do a search like "iron ore" it matches iron or ore. The same is true if I specify iron AND ore. The termSetMap[0].value[0] = ore and termSetMap[0].value[1] = iron. What am I missing

RE: Term offsets for highlighting

2010-04-27 Thread Stephen Greene
: Monday, April 26, 2010 10:55 AM To: java-user@lucene.apache.org Subject: Re: Term offsets for highlighting Stephen Greene wrote: > Hi Koji, > > Thank you. I implemented a solution based on the FieldTermStackTest.java > and if I do a search like "iron ore" it matches iron or o