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
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
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