search does not return results before an insert is performed
Status: Alpha
Brought to you by:
andyf421
After a restart of the application server, the search
does not return any results, until an insert is
performed. After the insert is performed, the results
that were inserted before the restart of the
application server also show up. I suspect there is a
problem with some kind of initialisation...
Logged In: YES
user_id=958084
The problem: in LuceneEngine.java, the variable currentMode
is initialized to FTEngine.MODE_NONE. Every time
executeSearch is called, nothing happens because it is in
the wrong mode and init() doesn't change the mode.
In my tree, I changed init() to set currentMode =
FTEngine.MODE_SEARCH. This seems to solve the problem.