lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <>
Subject Re: Positions vs. Term Vectors
Date Thu, 22 Mar 2007 10:18:04 GMT

22 mar 2007 kl. 10.42 skrev Matt Chaput:

> Per Term Position (prox) data vs. Per Doc Term Vectors. Belt and  
> Suspenders? Can't Term Vectors effectively (performantly) replace  
> position data for doing phrase matches? Is there another use of  
> position data that term vectors doesn't satisfy? Does each have  
> pros and cons? Or if you were implementing Lucene from scratch,  
> would you just implement term vectors and forget positions?

Term posisitions are stored next to the term because that is where  
the context cursor is located when placing queries (inversed index  
access). The term vectos is the oppsite thing, accessing the  
positions based on a document (vector space model). So to answer you  
question, as Lucene is an inverted index, term positions can not be  
replaced by term vectors to get the same or better performace at  
query time. The term vector is (as I see it) a cached vector space  


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message