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: [email protected]

> -----Original Message-----
> From: Dave Seltzer [mailto:[email protected]]
> Sent: Wednesday, August 22, 2012 4:23 PM
> To: [email protected]
> Subject: How do I use MultiTermQuery.Rewrite when working with a
> MemoryIndex
> 
> 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've seen references to a MemoryIndexReader in past versions of Lucene,
but it
> definately doesn't appear in 3.5.0
> 
> Thanks so much!
> 
> -Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to