If you're going to spend time mucking w/ TermPositions, you should just spend 
your time working with SpanQuery, as that is what I understand you to be asking 
about.  AIUI, you want to be able to get at the positions in the document where 
the query matched.  This is exactly what a SpanQuery and it's derivatives does. 
 It does all the work that you would have to do yourself by using the 
TermPositions class.


On Mar 12, 2010, at 6:38 PM, MitchK wrote:

> 
> Thank you both for your responses.
> 
> However, I am not familiar enough with Solr and even not with Lucene. So, at
> the moment, I have no real idea of what payloads are (I can't even translate
> this word...). 
> The manual says something about "metadata" - but there is nothing said about
> what metadata they mean.
> I think that - looking at my little experiences with Lucene and Solr - it
> would be a better idea to firstly read some stuff like "Lucene in Action",
> before tryring to customize (or contribute to)  Lucene/Solr at such a level. 
> 
> Do they currently work on the tickets? It seems like there was no more time
> to do so??
> 
> Last but not least: I want to add something productive to my question:
> The paper that maybe describes the solution for my problem... 
> 
> http://lucene.apache.org/java/3_0_1/fileformats.html#Positions
> 
> To quote:
> PositionDelta is, if payloads are disabled for the term's field, the
> difference between the position of the current occurrence in the document
> and the previous occurrence (or zero, if this is the first occurrence in
> this document). 
> 
> If I could retrive the given information, this would be great - even if it
> forces me to iterate over the document where the term occurs. Lucene's
> TermPositions-Class seems to be a good place to start, doesn't it??? What do
> you think? [1] 
> 
> Integrating some Lucene-based work to Solr is another question...I think one
> needs to have a map, where one can see which class is usually called by
> which class, but that is really another topic :). 
> 
> [1]
> http://lucene.apache.org/java/3_0_1/api/all/org/apache/lucene/store/instantiated/InstantiatedTermPositions.html
> 
> Thank you!
> - Mitch
> -- 
> View this message in context: 
> http://old.nabble.com/How-to-get-Term-Positions--tp27880551p27884130.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem using Solr/Lucene: 
http://www.lucidimagination.com/search

Reply via email to