Hi Carsten, It doesn't sound as though an inverted index is really what you want to be querying here, if I'm reading you right. You want to get the payloads for spans at a specific position, but you don't particularly care about the actual term at that position? You might find that BinaryDocValues are a better fit here, but it's difficult to tell without knowing what your actual use case is.
Alan Woodward www.flax.co.uk On 23 Apr 2013, at 15:06, Carsten Schnober wrote: > Am 23.04.2013 15:27, schrieb Alan Woodward: >> There's the SpanPositionCheckQuery family - SpanRangeQuery, SpanFirstQuery, >> etc. Is that the sort of thing you're looking for? > > Hi Alan, > thanks for the pointer, this is the right direction indeed. However, > these queries are based on a SpanQuery which depends on a specific > expression to search for. In my use case, I need to retrieve Spans > specified by their offsets only, and then get their payloads and process > them further. Alternatively, I could query for the occurence of certain > string patterns in the payloads and check the offsets subsequently, but > either way I'm no longer interested in the actual term at that point. > I don't see a way to do this with these Query type, or is there? > Carsten > > > -- > Institut für Deutsche Sprache | http://www.ids-mannheim.de > Projekt KorAP | http://korap.ids-mannheim.de > Tel. +49-(0)621-43740789 | schno...@ids-mannheim.de > Korpusanalyseplattform der nächsten Generation > Next Generation Corpus Analysis Platform > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org >