Re: Creating Span Queries from Boolean Queries

2012-08-22 Thread mark harwood
>>> Ideally I'd like to take any ANDed clauses and require them to occur> >>> withing $SPAN of the other ANDs. See ComplexPhraseQueryParser? Like the standard QueryParser it uses quotes to define a phrase but also interprets any special characters between the quotes e.g. ( ) * ~ The syntax and

How do I use MultiTermQuery.Rewrite when working with a MemoryIndex

2012-08-22 Thread Dave Seltzer
Hello, I have a program which regularly creates a MemoryIndex to be searched against a list of queries. In order to transform the queries that I'm being sent I need to be able to call MultiTermQuery.Rewrite(IndexReader) So how do I use MultiTermQuery.Rewrite when working with a MemoryIndex? I'v

Re: pruning package- question about termpositions && skipTo

2012-08-22 Thread Zeynep P.
Hi to all, I found the problem and the solution. In PruningReader super.getSequentialSubReaders(); is used. After 28118 super.next() is false because it is a subreader for a segment and indexreader.maxDoc() is equal to 28118 for that segment. In pruneAllPositions, instead of comparing termpostion

RE: How do I use MultiTermQuery.Rewrite when working with a MemoryIndex

2012-08-22 Thread Uwe Schindler
You can use MemoryIndex.createSearcher() to get IndexSearcher. This one has getIndexReader(). - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Dave Seltzer [mailto:dselt...@tveyes.com] > Sent: Wednesday, A

Re: How do I use MultiTermQuery.Rewrite when working with a MemoryIndex

2012-08-22 Thread Dave Seltzer
Perfect! Thanks so much! On Wed, Aug 22, 2012 at 10:36 AM, Uwe Schindler wrote: > You can use MemoryIndex.createSearcher() to get IndexSearcher. This one has > getIndexReader(). > > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de >

Personalized ranking using pre-computed scores

2012-08-22 Thread Sebastian R.
Dear all, I am currently trying to implement a personalized ranking with Lucene 3.6 for the search in a (non-commercial) social bookmarking system. The ranking of the search results is supposed to take into account the user who is logged in and several tags that define the "topic" of the search. T

RE: Problem with TermVector offsets and positions not being preserved

2012-08-22 Thread Mike O'Leary
I have one more question about term vector positions and offsets being preserved. My co-worker is working on updating the documents in an index with a field that contains a numerical value derived from the term frequencies and inverse document frequencies of terms in the document. His first pass