You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Kevin Chen <ch...@yahoo.com> on 2007/08/09 00:16:54 UTC

term location in doc

I can see that termpositions gives an enum with all positions of term in document. I want to do the opposite. Given a position , can I query the document for term at that position in document?



       
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 

Re: term location in doc

Posted by Chris Hostetter <ho...@fucit.org>.
: In-Reply-To: <20...@danielnaber.de>

http://people.apache.org/~hossman/#threadhijack

When starting a new discussion on a mailing list, please do not reply to
an existing message, instead start a fresh email.  Even if you change the
subject line of your email, other mail headers still track which thread
you replied to and your question is "hidden" in that thread and gets less
attention.   It makes following discussions in the mailing list archives
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/Thread_hijacking




-Hoss


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


Re: term location in doc

Posted by Grant Ingersoll <gs...@apache.org>.
If you like term vectors, using the latest Trunk version of Lucene  
and are willing to be a guinea pig.  :-)  See https:// 
issues.apache.org/jira/browse/LUCENE-975

Of course, you can always reanalyze the document as well and keep  
track of the positions as you go.  Maybe take a look at how contrib/ 
highlighter does things.

Or maybe I am misunderstanding things...

-Grant

On Aug 8, 2007, at 6:16 PM, Kevin Chen wrote:

> I can see that termpositions gives an enum with all positions of  
> term in document. I want to do the opposite. Given a position , can  
> I query the document for term at that position in document?
>
>
>
>
> ---------------------------------
> Ready for the edge of your seat? Check out tonight's top picks on  
> Yahoo! TV.

--------------------------
Grant Ingersoll
http://lucene.grantingersoll.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ



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