|Title|Search results incomplete
|Date|12-Nov-2005 12:08:20 EET
|Version|2.3.33
|Submitter|81.144.244.194
|[Bug criticality]|BadBug
|Browser version|Firefox
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|Tomcat 4.9
|Operating System|XP
|URL|
|Java version|1.4

When I search, I am not getting all the results.  For instance if I search Java or SQL I know I should get at least a few results (I'm searching skill profiles of techies...).

There's nothing odd about the text I'm looking for, it is freeformat text as part of a bulleted list. I'vesearched several terms and something is definitely wrong.

The log shows:

2005-11-12 09:48:18,312 [Thread-15] INFO com.ecyrd.jspwiki.search.LuceneSearchProvider  - Starting Lucene reindexing, this can take a couple minutes...
2005-11-12 09:48:18,781 [Thread-15] INFO com.ecyrd.jspwiki.search.LuceneSearchProvider  - Full Lucene index finished in 469 milliseconds.

So I guess I am using Lucene search. 

__I'm happy to look into this if anyone has any ideas__
--[AdamSmith]
----

Can you give some example on what gets indexed and what does not?

-- JanneJalkanen


----
There doesn't seem to be any pattern.  Is there any way to view/query the Lucene index?


;:I had a similar issue with the Search engine, after restarting the app. Seems that reusing the created Lucene indexes is not 100% working ok -- my search engine only seems to use the newly edited pages after that restart. --[DF|DirkFrederickx]

Just as an idea...  Do you have the jspwiki.workDir set in the jspwiki.properties file? -- JanneJalkanen

----
I do have the workdir set.

I have just confirmed DFs comments above.  I previously only got one result for 'java'.  I just edited my profile page, making no changes.  Now I get two results.  The point being that editing the page triggered a reindex of that page and now it works...

Interestingly (for me anyway!) the search appears to work fine on page names.

--[AdamSmith]

Verry strange...  You should be able to work around things by removing the lucene-directory from workdir whenever you restart.  Please keep us posted if you can find out anything new.

-- JanneJalkanen

I deleted the lucene directory, and restarted.  This worked perfectly! 
--[AdamSmith]

Actually, not quite perfectly, the results seem better though
--[AdamSmith]

----
I believe it boils down to the fact lucene does not re-index a page that has been updated. New pages are idexed straight away, but when you update that page and search for the updated text then it returns no results
-- AntonyG



----

I have exactly the same issue, which is causing problems as I am trying to use the wiki as a knowledgebase.

Pages seem to "drop off" the indexing, and the only way to restore them is to edit the page (no actual change to the content is needed).

Worrying.

--Sam.Hazim, 01-Dec-2006


----

We need more information - I simply cannot reproduce this bug.

--JanneJalkanen, 18-Mar-2007


----

[Waiting for bug reporter|Bugs Pending Bug Reporter]

--HarryMetske, 18-Mar-2007