Re: Exact Phrase Query

2008-11-01 Thread Erick Erickson
a, finally. I'm almost completely sure you can't *write* to a RAMDirectory and expect the underlying FSDir to be updated. The intent of RAMDirectorys is to *read* in an index from disk and keep it in memory. Essentially I believe that your RAMDirecotry constructor is taking a snapshot of the un

Re: Exact Phrase Query

2008-11-01 Thread semelak ss
I am not entirely sure if this can be the cause, but here is something I thought might be related: The idea is have an index containing documents where each document has a combination of two words : word1 and word2 and a score for these two words. The index would be searched first if the two word

Re: Exact Phrase Query

2008-11-01 Thread semelak ss
When using Luke,, searching for the followings gives me hits now: "insurer storm" The synatx of the query as parsed by Luke is : word:"insurer storm" The code I am using is as follows: -- _searcher = new IndexSearcher(INDEX_DIR); _parser = new QueryParser("word", new Whitespace